added precompile check in application.rb