application.rb updated for rails4