Class: Expansion::Attribute
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Expansion::Attribute
- Defined in:
- lib/expansion/attribute.rb
Constant Summary collapse
- VALUE_TYPES =
%w(boolean date float integer string text timestamp)
Instance Method Summary collapse
Instance Method Details
#values_for(model) ⇒ Object
11 12 13 14 15 |
# File 'lib/expansion/attribute.rb', line 11 def values_for model v = self.values.owned_by( model ) v = v.last unless self.is_multiple? v end |