lib/intercom/api_operations/nested_resource.rb in intercom-4.1.3 vs lib/intercom/api_operations/nested_resource.rb in intercom-4.2.0

- old
+ new

@@ -11,12 +11,10 @@ resource_plural ||= Utils.pluralize(resource.to_s) path ||= resource_plural raise ArgumentError, 'operations array required' if operations.nil? resource_url_method = :"#{resource_plural}_url" - resource_name = Utils.resource_class_to_collection_name(self) - define_method(resource_url_method.to_sym) do |id, nested_id = nil| url = "/#{resource_name}/#{id}/#{path}" url += "/#{nested_id}" unless nested_id.nil? url end