lib/alchemy/resources_helper.rb in alchemy_cms-3.3.0 vs lib/alchemy/resources_helper.rb in alchemy_cms-3.3.1
- old
+ new
@@ -29,19 +29,19 @@
def resource_scope
@_resource_scope ||= [resource_url_proxy].concat(resource_handler.namespace_for_scope)
end
- def resources_path(resource_or_name = resource_handler.resources_name, options = {})
+ def resources_path(resource_or_name = resource_handler.namespaced_resources_name, options = {})
polymorphic_path (resource_scope + [resource_or_name]), options
end
- def resource_path(resource = resource_handler.resource_name, options = {})
+ def resource_path(resource = resource_handler.namespaced_resource_name, options = {})
resources_path(resource, options)
end
def new_resource_path(options = {})
- new_polymorphic_path (resource_scope + [resource_handler.resource_name]), options
+ new_polymorphic_path (resource_scope + [resource_handler.namespaced_resource_name]), options
end
def edit_resource_path(resource = nil, options = {})
path_segments = (resource_scope + [resource] || resource_handler.resource_array)
edit_polymorphic_path path_segments, options