Class: Para::AttributeField::DatetimeField
- Defined in:
- lib/para/attribute_field/datetime.rb
Instance Attribute Summary
Attributes inherited from Base
#field_method, #field_type, #model, #name, #options, #type
Instance Method Summary collapse
Methods inherited from Base
#attribute_column_path, #determine_name_and_field_method!, #excerptable_value?, #field_name, field_option, #field_options, field_types, #initialize, #parse_input, register, #searchable?, #type?
Constructor Details
This class inherits a constructor from Para::AttributeField::Base
Instance Method Details
#value_for(instance) ⇒ Object
8 9 10 |
# File 'lib/para/attribute_field/datetime.rb', line 8 def value_for(instance) (value = instance.send(name)) && ::I18n.l(value, format: :admin) end |
#wrapper_name ⇒ Object
12 13 14 |
# File 'lib/para/attribute_field/datetime.rb', line 12 def wrapper_name :vertical_form end |