module Gorillib::StringFixup
Public Instance Methods
receive!(hsh={})
click to toggle source
intercept to replace fixup-able hash keys with the proper field name in the receive hash
Calls superclass method
# File lib/gorillib/model/fixup.rb, line 9 def receive!(hsh={}) self.class.fields.each do |field_name, field| next unless field.fixup? hsh[field_name] = hsh.delete(field.fixup) if hsh.has_key?(field.fixup) end super(hsh) end