lib/her/model/paths.rb
# Defines a custom collection path for the resource
#
# @example
#  class User
#    include Her::Model
#    collection_path "/users"
#  end
Defines a custom collection path for the resource
Defines a custom collection path for the resource
def collection_path(path = nil)
          if path.nil?
            @_her_collection_path ||= root_element.to_s.pluralize
          else
            @_her_collection_path = path
            @_her_resource_path = "#{path}/:id"
          end
        end
def collection_path ( path = nil ) if path . nil? @_her_collection_path ||= root_element . to_s . pluralize else @_her_collection_path = path @_her_resource_path = "#{path}/:id" end end
Defines a custom collection path for the resource
Defines a custom collection path for the resource
path
<not_specific>
example
class User include Her::Model collection_path "/users" end
class User include Her :: Model collection_path " / users " end