Sha256: 6345893917a5b2d43c06d64e6ced52f9b6cbbda8e1b89ae5b925f07da1f576f2
Contents?: true
Size: 536 Bytes
Versions: 4
Compression:
Stored size: 536 Bytes
Contents
require 'simplec/action_controller/extensions' require 'simplec/action_view/helper' module Simplec class Engine < ::Rails::Engine isolate_namespace Simplec initializer "simplec_controller_extensions" do ActiveSupport.on_load(:action_controller_base) { prepend Simplec::ActionController::Extensions helper Simplec::ActionView::Helper } ActiveSupport.on_load(:active_record) { Dir["#{Rails.root}/app/models/page/*.rb"].each {|file| require_dependency file } } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
simplec-0.3.0 | lib/simplec/engine.rb |
simplec-0.2.0 | lib/simplec/engine.rb |
simplec-0.1.2 | lib/simplec/engine.rb |
simplec-0.1.0 | lib/simplec/engine.rb |