Module: ExtJS::Model::InstanceMethods
- Defined in:
- lib/active_record/model.rb
Overview
InstanceMethods
Instance Method Summary collapse
Instance Method Details
#to_record ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/active_record/model.rb', line 12 def to_record data = {self.class.primary_key => self.send(self.class.primary_key)} self.class.extjs_fields.each do |f| data[f] = self.send(f) end data end |