From 7e0888d3750a14166626313ffcd5ee662413b458 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 31 May 2016 06:54:11 -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 fc221d9..63eda67 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.instance_methods(true).include?(n) + if @details.method_defined?(n) if method_name[-1, 1] == "=" @details.method(method_name).call(value) else