Method: CiviCrm::Resource#method_missing
- Defined in:
- lib/civicrm/resource.rb
#method_missing(name, *opts) ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/civicrm/resource.rb', line 31 def method_missing(name, *opts) if name[-1] == '=' name = name.to_s.gsub(/\=$/, '') send(:"#{name}_will_change!") @values[name.to_s] = opts.first if @values.has_key?(name.to_s) else @values[name.to_s] if @values.has_key?(name.to_s) end end |