edited application_controller.rb