missing ends in application_controller.rb

*last commit had missing an end