Module: DCA::Models::Binder

Extended by:
ActiveSupport::Concern
Included in:
BaseModel
Defined in:
lib/dca/models/binder.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

COMPLEX_TYPE =
[:integer, :float, :string, :symbol, :datetime]

Instance Method Summary collapse

Instance Method Details

#bind(content) ⇒ Object



47
48
49
50
51
52
# File 'lib/dca/models/binder.rb', line 47

def bind content
  self.class.associations.each do |field, options|
    update field, self.class.binder.parse(self, content, options), options[:options][:append]
  end
  self
end