Module: ActiveAdmin::ResourceController::PolymorphicRoutes
- Included in:
- ActiveAdmin::ResourceController
- Defined in:
- app/controllers/active_admin/resource_controller/polymorphic_routes.rb
Instance Method Summary collapse
- #polymorphic_path(record_or_hash_or_array, options = {}) ⇒ Object
- #polymorphic_url(record_or_hash_or_array, options = {}) ⇒ Object
Instance Method Details
#polymorphic_path(record_or_hash_or_array, options = {}) ⇒ Object
12 13 14 |
# File 'app/controllers/active_admin/resource_controller/polymorphic_routes.rb', line 12 def polymorphic_path(record_or_hash_or_array, = {}) super(map_named_resources_for(record_or_hash_or_array), ) end |
#polymorphic_url(record_or_hash_or_array, options = {}) ⇒ Object
8 9 10 |
# File 'app/controllers/active_admin/resource_controller/polymorphic_routes.rb', line 8 def polymorphic_url(record_or_hash_or_array, = {}) super(map_named_resources_for(record_or_hash_or_array), ) end |