Sha256: cb2457fa7431d35b0c417e1c9746989ba97dc329b6ed3aa5619ce7223d844440

Contents?: true

Size: 778 Bytes

Versions: 6

Compression:

Stored size: 778 Bytes

Contents

module Ecm
  module CmsNavigation
    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_cms_navigation.asset_pipeline" do |app|
          app.config.assets.precompile << 'active_admin/ecm-cms-navigation.css'
        end
      end
        
      config.to_prepare do
        ApplicationController.helper(Ecm::CmsNavigationHelper)
      end  
      
      initializer :ecm_cms_navigation_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

6 entries across 6 versions & 1 rubygems

Version Path
ecm_cms_navigation-0.0.13 lib/ecm/cms_navigation/engine.rb
ecm_cms_navigation-0.0.12 lib/ecm/cms_navigation/engine.rb
ecm_cms_navigation-0.0.11 lib/ecm/cms_navigation/engine.rb
ecm_cms_navigation-0.0.10 lib/ecm/cms_navigation/engine.rb
ecm_cms_navigation-0.0.9 lib/ecm/cms_navigation/engine.rb
ecm_cms_navigation-0.0.8 lib/ecm/cms_navigation/engine.rb