refactor applicaiton.rb
Merge pull request #1882 from Daxter/refactor-application.rb

Refactor application.rb