Sha256: f0a7dea4947a7ef9df9a8e8d7bf30acaf07b84492f6a39ac1920fc22533a7ecd
Contents?: true
Size: 532 Bytes
Versions: 5
Compression:
Stored size: 532 Bytes
Contents
module Simplec class Engine < ::Rails::Engine isolate_namespace Simplec initializer "simplec_controller_extensions" do ActiveSupport.on_load(:action_controller_base) { include Simplec::ActionController::Extensions prepend Simplec::PageActionHelpers helper Simplec::ActionView::Helper } ActiveSupport.on_load(:active_record) { Simplec.load_pages } end end def self.load_pages Dir["#{Rails.root}/app/models/page/*.rb"].each {|file| require_dependency file } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
simplec-0.4.4 | lib/simplec/engine.rb |
simplec-0.4.3 | lib/simplec/engine.rb |
simplec-0.4.2 | lib/simplec/engine.rb |
simplec-0.4.1 | lib/simplec/engine.rb |
simplec-0.4.0 | lib/simplec/engine.rb |