lib/simplec/engine.rb in simplec-0.10.0 vs lib/simplec/engine.rb in simplec-0.10.1

- old
+ new

@@ -7,10 +7,11 @@ include Simplec::ActionController::Extensions prepend Simplec::PageActionHelpers helper Simplec::ActionView::Helper helper *Simplec.helpers } - ActiveSupport.on_load(:active_record) { Simplec.load_pages } + # Not required anymore, keep in Page Model in host application + # ActiveSupport.on_load(:active_record) { Simplec.load_pages } end end def self.load_pages Dir["#{Rails.root}/app/models/page/*.rb"].