Module: ActiveAdmin::ResourceController::PolymorphicRoutes

Included in:
ActiveAdmin::ResourceController
Defined in:
lib/active_admin/resource_controller/polymorphic_routes.rb

Instance Method Summary collapse

Instance Method Details

#polymorphic_path(record_or_hash_or_array, options = {}) ⇒ Object


11
12
13
# File 'lib/active_admin/resource_controller/polymorphic_routes.rb', line 11

def polymorphic_path(record_or_hash_or_array, options = {})
  super(map_named_resources_for(record_or_hash_or_array), options)
end

#polymorphic_url(record_or_hash_or_array, options = {}) ⇒ Object


7
8
9
# File 'lib/active_admin/resource_controller/polymorphic_routes.rb', line 7

def polymorphic_url(record_or_hash_or_array, options = {})
  super(map_named_resources_for(record_or_hash_or_array), options)
end