mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update customer.rb
This commit is contained in:
@@ -118,24 +118,6 @@ class Customer < ActiveRecord::Base
|
|||||||
#where.not(customers.map(&:id)).destroy_all
|
#where.not(customers.map(&:id)).destroy_all
|
||||||
end
|
end
|
||||||
|
|
||||||
# Magic Method
|
|
||||||
def method_missing(name, *arguments)
|
|
||||||
value = arguments[0]
|
|
||||||
name = name.to_s
|
|
||||||
|
|
||||||
# if the method's name ends with '='
|
|
||||||
if name[-1, 1] == "="
|
|
||||||
method_name = name[0..-2]
|
|
||||||
@details[method_name] = value
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
return @details[name]
|
|
||||||
rescue
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Push the updates
|
# Push the updates
|
||||||
|
|||||||
Reference in New Issue
Block a user