Module: Phlexi::Field::Options::Multiple

Included in:
Builder
Defined in:
lib/phlexi/field/options/multiple.rb

Instance Method Summary collapse

Instance Method Details

#multiple!(multiple = true) ⇒ Object



11
12
13
14
# File 'lib/phlexi/field/options/multiple.rb', line 11

def multiple!(multiple = true)
  options[:multiple] = multiple
  self
end

#multiple?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/phlexi/field/options/multiple.rb', line 7

def multiple?
  options[:multiple] = options.fetch(:multiple) { calculate_multiple_field_value }
end