Method: Og::SqlStore#field_for_attribute
- Defined in:
- lib/og/store/sql.rb
#field_for_attribute(a, anno) ⇒ Object
Return the SQL table field for the given serializable attribute. You can override the default field name by annotating the attribute with a :field annotation.
651 652 653 |
# File 'lib/og/store/sql.rb', line 651 def field_for_attribute(a, anno) (f = anno[:field]) ? f : a end |