Module: Para::Component::BaseDecorator
- Includes:
- ActionDispatch::Routing::PolymorphicRoutes
- Included in:
- CrudDecorator, SettingsDecorator, SingletonResourceDecorator
- Defined in:
- app/decorators/para/component/base_decorator.rb
Instance Method Summary collapse
Instance Method Details
#path(options = {}) ⇒ Object
7 8 9 |
# File 'app/decorators/para/component/base_decorator.rb', line 7 def path( = {}) find_path([:admin, self], ) end |
#relation_path(controller_or_resource, options = {}) ⇒ Object
11 12 13 |
# File 'app/decorators/para/component/base_decorator.rb', line 11 def relation_path(controller_or_resource, = {}) find_path([:admin, self, controller_or_resource], ) end |