diff --git a/app/models/customer.rb b/app/models/customer.rb index d4cf86b..03fc0ba 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -85,7 +85,7 @@ class Customer < ActiveRecord::Base value = arguments[0] method_name = n.to_s # Check to see if the method exists - if @details.instance_methods(true).include?(n) + if Quickbooks::Model::Customer.method_defined?(n) if method_name[-1, 1] == "=" @details.method(method_name).call(value) else