lib/effective_roles/engine.rb in effective_roles-2.0.3 vs lib/effective_roles/engine.rb in effective_roles-2.0.4
- old
+ new
@@ -5,10 +5,10 @@
config.autoload_paths += Dir["#{config.root}/app/models/concerns", "#{config.root}/lib/"]
# Include acts_as_addressable concern and allow any ActiveRecord object to call it
initializer 'effective_roles.active_record' do |app|
ActiveSupport.on_load :active_record do
- ActiveRecord::Base.extend(ActsAsRoleRestricted::ActiveRecord)
+ ActiveRecord::Base.extend(ActsAsRoleRestricted::Base)
end
end
# Register the log_page_views concern so that it can be called in ActionController or elsewhere
initializer 'effective_logging.log_changes_action_controller' do |app|