Sha256: bcd61b04b47274d4ac0ec8c4458ceb5127a5a956d04334d64dc7c9427962f663

Contents?: true

Size: 596 Bytes

Versions: 17

Compression:

Stored size: 596 Bytes

Contents

module Ecm
  module Cms
    class Engine < ::Rails::Engine
      # active admin
      initializer :ecm_cms_engine do
        ::ActiveAdmin.setup do |config|
          config.load_paths += Dir[File.dirname(__FILE__) + '/active_admin']
          config.register_stylesheet 'ecm_cms.css'
        end
      end if defined?(::ActiveAdmin)

      # assets
      if Rails.version >= '3.1'
        initializer "ecm_cms.asset_pipeline" do |app|
          # app.config.assets.precompile << 'ecm_cms.js'
          app.config.assets.precompile << 'ecm_cms.css'
        end
      end      
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ecm_cms-1.0.5.pre lib/ecm/cms/engine.rb
ecm_cms-1.0.4.pre lib/ecm/cms/engine.rb
ecm_cms-1.0.3.pre lib/ecm/cms/engine.rb
ecm_cms-1.0.2.pre lib/ecm/cms/engine.rb
ecm_cms-1.0.1.pre lib/ecm/cms/engine.rb
ecm_cms-1.0.0.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.13.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.11.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.10.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.8.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.7.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.6.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.5.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.4.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.3.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.2.pre lib/ecm/cms/engine.rb
ecm_cms-0.0.1.pre lib/ecm/cms/engine.rb