Method: Upmin::Model#attributes
- Defined in:
- lib/upmin/model.rb
#attributes ⇒ Object
Methods for determinining attributes, and their types.
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/upmin/model.rb', line 71 def attributes return @attributes if defined?(@attributes) attributes = {} rails_model.upmin_attributes.each do |u_attr| attributes[u_attr] = {} attributes[u_attr][:type] = get_attr_type(u_attr) end return @attributes = attributes end |