Class: Administrate::Field::Date
- Defined in:
- lib/administrate/field/date.rb
Instance Attribute Summary
Attributes inherited from Base
#attribute, #data, #options, #page, #resource
Instance Method Summary collapse
Methods inherited from Base
associative?, eager_load?, field_type, html_class, #html_class, #html_controller, #initialize, local_partial_prefixes, #name, partial_prefixes, #partial_prefixes, permitted_attribute, #read_value, #required?, searchable?, sortable?, with_options
Constructor Details
This class inherits a constructor from Administrate::Field::Base
Instance Method Details
#date ⇒ Object
6 7 8 9 10 11 |
# File 'lib/administrate/field/date.rb', line 6 def date I18n.localize( data.in_time_zone(timezone).to_date, format: format ) end |