Sha256: 28c3dec2777308b91033773c655570b4d419fc53f6ffddf33e1713fbb7f32f24

Contents?: true

Size: 912 Bytes

Versions: 1

Compression:

Stored size: 912 Bytes

Contents

module AssetManager
  class Engine < ::Rails::Engine
    isolate_namespace AssetManager
    config.generators.template_engine :haml
    config.generators.integration_tool :rspec
    config.generators.test_framework :rspec
    config.generators.fixture_replacement :factory_girl, dir: 'spec/factories'
    config.generators.orm :active_record
    config.generators.stylesheets true
    config.generators.form_builder :formtastic

    # We include the engine's helpers
    initializer 'asset_manager.action_controller' do |app|
      ActiveSupport.on_load :action_view do
        include AssetManager::AssetsHelper
        include AssetManager::AssetInstancesHelper
      end
    end

    if Rails.version > '3.1'
      initializer 'Asset Manager precompile hook' do |app|
        app.config.assets.precompile += [
          'asset_manager.css',
          'asset_manager.js',
        ]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
intesys_asset_manager-1.0.0 lib/asset_manager/engine.rb