lib/active_admin/resource/controllers.rb in activeadmin-0.4.4 vs lib/active_admin/resource/controllers.rb in activeadmin-0.5.0.pre

- old
+ new

@@ -3,10 +3,10 @@ module Controllers # Returns a properly formatted controller name for this # config within its namespace def controller_name - [namespace.module_name, plural_camelized_resource_name + "Controller"].compact.join('::') + [namespace.module_name, resource_name.plural.camelize + "Controller"].compact.join('::') end # Returns the controller for this config def controller @controller ||= controller_name.constantize