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

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

Instance Attribute Summary

Attributes inherited from Base

#defined, #name, #order, #properties

Attributes inherited from Base

#abstract_model, #bindings, #parent, #root

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#association?, #column_css_class, #dom_id, #dom_name, #errors, #has_errors?, inherited, #method_name, #optional, #optional=, #optional?, #type, #virtual?

Methods included from Hideable

#hidden?, #hide, included, #show

Methods inherited from Base

#has_option?, register_class_option, #register_deprecated_instance_option, register_deprecated_instance_option, register_instance_option, #register_instance_option, #with

Constructor Details

#initialize(parent, name, properties) ⇒ Password

Returns a new instance of Password.



20
21
22
23
# File 'lib/rails_admin/config/fields/types/password.rb', line 20

def initialize(parent, name, properties)
  super(parent, name, properties)
  hide if parent.kind_of?(RailsAdmin::Config::Sections::List)
end

Class Method Details

.column_namesObject



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

def self.column_names
  @column_names
end

Instance Method Details

#valueObject

Password field’s value does not need to be read



30
31
32
# File 'lib/rails_admin/config/fields/types/password.rb', line 30

def value
  ""
end