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