lib/zendesk_api/collection.rb in zendesk_api-1.9.0 vs lib/zendesk_api/collection.rb in zendesk_api-1.9.1
- old
+ new
@@ -46,9 +46,10 @@
end
end
methods = %w{create find update destroy}
methods += methods.map {|method| method + "!"}
+ methods += %w{create_many! destroy_many!}
methods.each do |deferrable|
# Passes arguments and the proper path to the resource class method.
# @param [Hash] options Options or attributes to pass
define_method deferrable do |*args|
unless @resource_class.respond_to?(deferrable)