Sha256: 3a23585f53914c8b806f7f81951d768097b7f9454bba0e86aa79d60a24691b26

Contents?: true

Size: 795 Bytes

Versions: 1

Compression:

Stored size: 795 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

1 entries across 1 versions & 1 rubygems

Version Path
ecm_cms_core-0.0.2 lib/ecm/cms_core/engine.rb