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