Added config middleware in Gemfile