mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update customer.rb
This commit is contained in:
@@ -84,16 +84,16 @@ class Customer < ActiveRecord::Base
|
|||||||
pull unless @details
|
pull unless @details
|
||||||
value = arguments[0]
|
value = arguments[0]
|
||||||
method_name = n.to_s
|
method_name = n.to_s
|
||||||
#if @detils.respond_to?(n)
|
# Check to see if the method exists
|
||||||
# if the method's name ends with '='
|
if @detils.method_defined?(n)
|
||||||
if method_name[-1, 1] == "="
|
if method_name[-1, 1] == "="
|
||||||
@details.method(method_name).call(value)
|
@details.method(method_name).call(value)
|
||||||
else
|
else
|
||||||
return @details.method(method_name).call
|
return @details.method(method_name).call
|
||||||
end
|
end
|
||||||
#else
|
else
|
||||||
# super
|
super
|
||||||
#end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# proforms a bruteforce sync operation
|
# proforms a bruteforce sync operation
|
||||||
|
|||||||
Reference in New Issue
Block a user