Class: RailsAdmin::Config::Fields::Types::Password

Inherits:
String show all
Defined in:
lib/rails_admin/config/fields/types/password.rb

Constant Summary

Constants inherited from Base

Base::NAMED_INSTANCE_VARIABLES

Instance Attribute Summary

Attributes inherited from Base

#abstract_model, #defined, #name, #order, #parent, #properties, #root, #section

Instance Method Summary collapse

Methods inherited from String

#generic_help, #input_size

Methods inherited from Base

#association?, #editable?, #errors, #form_default_value, #form_value, #generic_field_help, #generic_help, #initialize, #inverse_of, #method_name, #optional, #optional=, #optional?, #parse_value, #type, #type_css_class, #virtual?

Methods included from Inspectable

#inspect

Methods included from Groupable

#group

Methods included from Hideable

#hidden?, #hide, included, #show

Methods included from Configurable

#has_option?, #register_deprecated_instance_option, #register_instance_option

Methods included from Proxyable

#bindings, #bindings=, #with

Constructor Details

This class inherits a constructor from RailsAdmin::Config::Fields::Base

Instance Method Details

#parse_input(params) ⇒ Object


15
16
17
18
19
20
21
# File 'lib/rails_admin/config/fields/types/password.rb', line 15

def parse_input(params)
  if params[name].present?
    params[name] = params[name]
  else
    params.delete(name)
  end
end

#valueObject

Password field's value does not need to be read


28
29
30
# File 'lib/rails_admin/config/fields/types/password.rb', line 28

def value
  ''
end