class RailsAdmin::Config::Fields::Types::Boolean

Public Instance Methods

form_value() click to toggle source
# File lib/rails_admin/config/fields/types/boolean.rb, line 51
def form_value
  case value
  when true, false
    value
  end
end
generic_help() click to toggle source

Accessor for field’s help text displayed below input field.

# File lib/rails_admin/config/fields/types/boolean.rb, line 59
def generic_help
  ''
end
parse_input(params) click to toggle source
# File lib/rails_admin/config/fields/types/boolean.rb, line 63
def parse_input(params)
  params[name] = params[name].presence if params.key?(name)
end