Fix Rails.application.config.assets.initialize_on_precompile for Rails 4

Fix Rails.application.config.assets.initialize_on_precompile for Rails 4. The issue #79