Class: RailsAdmin::Config::Fields::Types::Date
- Defined in:
- lib/rails_admin/config/fields/types/date.rb
Instance Attribute Summary
Attributes inherited from Base
#defined, #name, #order, #properties
Attributes inherited from Base
#abstract_model, #bindings, #parent, #root
Instance Method Summary collapse
Methods inherited from Datetime
#formatted_date_value, #formatted_time_value, #js_date_format, #js_plugin_options, #localized_date_format, #localized_format, #localized_time_format, #meridian_indicator?, normalize
Methods included from I18nSupport
#abbr_day_names, #abbr_month_names, #date_format, #day_names, #month_names
Methods inherited from Base
#association?, #column_css_class, #dom_id, #dom_name, #errors, #has_errors?, inherited, #initialize, #method_name, #optional, #optional=, #optional?, #type, #value, #virtual?
Methods included from Hideable
#hidden?, #hide, included, #show
Methods inherited from Base
#has_option?, #initialize, register_class_option, #register_deprecated_instance_option, register_deprecated_instance_option, #register_instance_option, register_instance_option, #with
Constructor Details
This class inherits a constructor from RailsAdmin::Config::Fields::Base
Instance Method Details
#parse_input(params) ⇒ Object
17 18 19 |
# File 'lib/rails_admin/config/fields/types/date.rb', line 17 def parse_input(params) params[name] = self.class.normalize(params[name], localized_date_format).to_date if params[name] end |