Method: LucidWorks::Base.to_select
- Defined in:
- lib/lucid_works/base.rb
.to_select(attribute) ⇒ Object
For attributes listed in the schema as having :values, this will create an array-of-arrays suitable for use as options_for_select.
256 257 258 |
# File 'lib/lucid_works/base.rb', line 256 def to_select(attribute) schema[attribute].to_select end |