Module: ActiveAdmin::Resource::Controllers
- Included in:
- Page, ActiveAdmin::Resource
- Defined in:
- lib/active_admin/resource/controllers.rb
Instance Method Summary collapse
-
#controller ⇒ Object
Returns the controller for this config.
-
#controller_name ⇒ Object
Returns a properly formatted controller name for this config within its namespace.
Instance Method Details
#controller ⇒ Object
Returns the controller for this config
14 15 16 |
# File 'lib/active_admin/resource/controllers.rb', line 14 def controller @controller ||= controller_name.constantize end |
#controller_name ⇒ Object
Returns a properly formatted controller name for this config within its namespace
9 10 11 |
# File 'lib/active_admin/resource/controllers.rb', line 9 def controller_name [namespace.module_name, resource_name.plural.camelize + "Controller"].compact.join("::") end |