Class: Lolita::Configuration::Field::String
- Defined in:
- lib/lolita/configuration/field/string.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(dbi, name, *args, &block) ⇒ String
constructor
A new instance of String.
Methods inherited from Base
#find_dbi_field, #match_state_of?, #name=, #nested?, #nested_in?, #record_state_matches_with, #set_attributes, #title, #type, #type=
Methods included from Builder
#build, #builder, #builder=, #builder_default_name, #builder_default_options, #builder_default_state
Constructor Details
#initialize(dbi, name, *args, &block) ⇒ String
Returns a new instance of String.
6 7 8 9 10 11 |
# File 'lib/lolita/configuration/field/string.rb', line 6 def initialize dbi,name,*args, &block super if self.dbi_field && self.dbi_field.[:native_type] == "text" self.builder = :text unless @builder end end |