Sha256: 3c29a002cfb8aef1645f2d7ac749c01e7faa065d21d609dca0e37d798aafd521
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
module ControlCenter class Engine < Rails::Engine engine_name :control_center if Rails.version >= '3.1' initializer :assets do |config| Rails.application.config.assets.precompile += Dir.glob(File.join("#{self.root}", 'app', 'assets', '**', '*')) end end initializer 'action_view.helper_mehtods' do |app| ActiveSupport.on_load(:action_view) do ::ActionView::Base.send :include, ControlCenter::Helpers::LayoutHelper end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
control_center-1.0.2 | lib/control_center/engine.rb |
control_center-1.0.1 | lib/control_center/engine.rb |