Sha256: d9d7362ec3308cae0eefc5bce96839554420d281a3f2be0249bd2c0c66d9fe17

Contents?: true

Size: 802 Bytes

Versions: 5

Compression:

Stored size: 802 Bytes

Contents

module Ecm
  module CmsCore
    class Engine < Rails::Engine 
     paths["config/locales"] << File.dirname(__FILE__) + '/../../../config/locales'
      
#      # Enabling assets precompiling under rails 3.1 or greater
#      if Rails.version >= '3.1'
#        initializer "ecm_pictures.asset_pipeline" do |app|
#          app.config.assets.precompile << 'ecm_cms_core.js'
#          app.config.assets.precompile << 'ecm_cms_core.css'
#        end
#      end
      
      config.to_prepare do
        ApplicationController.helper(Ecm::CmsCoreHelper)
      end  
      
      initializer :ecm_pictures_engine do
        ActiveAdmin.setup do |active_admin_config|
          active_admin_config.load_paths += Dir[File.dirname(__FILE__) + '/../../../app/admin']
        end
      end   
    end
  end  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecm_cms_core-0.0.8 lib/ecm/cms_core/engine.rb
ecm_cms_core-0.0.7 lib/ecm/cms_core/engine.rb
ecm_cms_core-0.0.6 lib/ecm/cms_core/engine.rb
ecm_cms_core-0.0.5 lib/ecm/cms_core/engine.rb
ecm_cms_core-0.0.3 lib/ecm/cms_core/engine.rb