Method: Pageflow::Generators::AssetsGenerator#initialize_on_precompile

Defined in:
lib/generators/pageflow/assets/assets_generator.rb

#initialize_on_precompileObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



29
30
31
32
33
34
35
# File 'lib/generators/pageflow/assets/assets_generator.rb', line 29

def initialize_on_precompile
  inject_into_file 'config/application.rb',
                   after: "class Application < Rails::Application\n" do
    "    # required for i18n-js gem\n    " \
      "config.assets.initialize_on_precompile = true\n\n"
  end
end