Class: Ezframe::PasswordType
- Defined in:
- lib/ezframe/column_type.rb
Instance Attribute Summary
Attributes inherited from TypeBase
Instance Method Summary collapse
Methods inherited from TextType
Methods inherited from TypeBase
#db_type, #form_html, get_class, #initialize, #key, #label, #multi_inputs?, #no_edit?, #no_view?, #normalize, type_name, #validate, #value, #value=, #view
Constructor Details
This class inherits a constructor from Ezframe::TypeBase
Instance Method Details
#db_value ⇒ Object
228 229 230 |
# File 'lib/ezframe/column_type.rb', line 228 def db_value return value end |
#form(opts = {}) ⇒ Object
221 222 223 224 225 226 |
# File 'lib/ezframe/column_type.rb', line 221 def form(opts = {}) return nil if no_edit? && !opts[:force] h = { tag: "input", type: "password", name: self.key, label: @attribute[:label], value: @value || "" } h[:class] = @attribute[:class] if @attribute[:class] return h end |