Class: ActiveAdmin::Router
- Inherits:
-
Object
- Object
- ActiveAdmin::Router
- Defined in:
- lib/active_admin/router.rb
Instance Attribute Summary collapse
-
#namespaces ⇒ Object
readonly
Returns the value of attribute namespaces.
-
#router ⇒ Object
readonly
Returns the value of attribute router.
Instance Method Summary collapse
- #apply ⇒ Object
-
#initialize(router:, namespaces:) ⇒ Router
constructor
A new instance of Router.
Constructor Details
#initialize(router:, namespaces:) ⇒ Router
Returns a new instance of Router.
7 8 9 10 |
# File 'lib/active_admin/router.rb', line 7 def initialize(router:, namespaces:) @router = router @namespaces = namespaces end |
Instance Attribute Details
#namespaces ⇒ Object (readonly)
Returns the value of attribute namespaces.
5 6 7 |
# File 'lib/active_admin/router.rb', line 5 def namespaces @namespaces end |
#router ⇒ Object (readonly)
Returns the value of attribute router.
5 6 7 |
# File 'lib/active_admin/router.rb', line 5 def router @router end |
Instance Method Details
#apply ⇒ Object
12 13 14 15 |
# File 'lib/active_admin/router.rb', line 12 def apply define_root_routes define_resources_routes end |