Module: Her::Model::Paths
- Extended by:
- ActiveSupport::Concern
- Included in:
- Her::Model
- Defined in:
- lib/castle-her/model/paths.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#request_path(params = {}) ⇒ Object
Return a path based on the collection path and a resource data.
Instance Method Details
#request_path(params = {}) ⇒ Object
Return a path based on the collection path and a resource data
17 18 19 |
# File 'lib/castle-her/model/paths.rb', line 17 def request_path(params = {}) self.class.build_request_path(params.merge(attributes.dup)) end |