Module: Phlexi::Form::Options::Choices
- Included in:
- Builder
- Defined in:
- lib/phlexi/form/options/choices.rb
Instance Method Summary collapse
Instance Method Details
#choices(choices = nil) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/phlexi/form/options/choices.rb', line 7 def choices(choices = nil) if choices.nil? .fetch(:choices) { [:choices] = infer_choices } else [:choices] = choices self end end |