lib/unit-ruby/util/api_resource.rb in unit-ruby-0.2.3 vs lib/unit-ruby/util/api_resource.rb in unit-ruby-0.2.4

- old
+ new

@@ -68,10 +68,12 @@ def self.resource_path(id) "#{path}/#{id}" end - def self.resources_path + def self.resources_path(id = nil) + return "#{path}/#{id}" if id + path end # The JSON:API type for this resource def resource_type