Module: Avo::Fields::FieldExtensions::HasIncludeBlank

Included in:
CountryField, SelectField
Defined in:
lib/avo/fields/field_extensions/has_include_blank.rb

Instance Method Summary collapse

Instance Method Details

#include_blankObject



5
6
7
8
9
10
11
12
13
# File 'lib/avo/fields/field_extensions/has_include_blank.rb', line 5

def include_blank
  if @args[:include_blank] == true
    placeholder || ""
  elsif @args[:include_blank] == false
    false
  else
    @args[:include_blank]
  end
end