From f435f7f3c89df13809690036b9fbdfeb4f867c40 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 31 May 2016 06:49:15 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 70e28ac..fc221d9 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 @detils.method_defined?(n) + if @detils.instance_methods(true).include?(n) if method_name[-1, 1] == "=" @details.method(method_name).call(value) else