lib/unit-ruby/util/api_resource.rb in unit-ruby-0.1.1 vs lib/unit-ruby/util/api_resource.rb in unit-ruby-0.1.2
- old
+ new
@@ -77,13 +77,9 @@
# The JSON:API type for this resource
def resource_type
self.class.name.split('::').last.camelize(:lower)
end
- def resource_path
- "#{self.class.path}/#{id}"
- end
-
# Creates an association to a related resource
# This will create a helper method to traverse into a resource's related resource(s)
def self.belongs_to(resource_name, class_name: nil)
class_name ||= resource_name.to_s.camelize