lib/simplec/engine.rb in simplec-0.4.4 vs lib/simplec/engine.rb in simplec-0.5.0
- old
+ new
@@ -5,14 +5,16 @@
initializer "simplec_controller_extensions" do
ActiveSupport.on_load(:action_controller_base) {
include Simplec::ActionController::Extensions
prepend Simplec::PageActionHelpers
helper Simplec::ActionView::Helper
+ helper *Simplec.helpers
}
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 }
+ Dir["#{Rails.root}/app/models/page/*.rb"].
+ each {|file| require_dependency file }
end
end