lib/haveapi/client/resource_instance.rb in haveapi-client-0.23.5 vs lib/haveapi/client/resource_instance.rb in haveapi-client-0.23.6

- old
+ new

@@ -161,11 +161,11 @@ end end end # Define method +name+ with +block+ if it isn't defined yet. - def ensure_method(name, &) - define_singleton_method(name, &) unless respond_to?(name) + def ensure_method(name, &block) + define_singleton_method(name, &block) unless respond_to?(name) end # Define nil references to resource attributes. # Used only for not-persistent objects. def define_implicit_attributes