Module: ActiveScaffold::Bridges::DatePicker::Finder
- Defined in:
- lib/active_scaffold/bridges/date_picker/ext.rb
Instance Method Summary collapse
- #datetime_column_date?(column) ⇒ Boolean
- #datetime_conversion_for_condition(column) ⇒ Object
- #format_for_date(column, value, format_name = column.options[:format]) ⇒ Object
Instance Method Details
#datetime_column_date?(column) ⇒ Boolean
36 37 38 39 40 41 42 |
# File 'lib/active_scaffold/bridges/date_picker/ext.rb', line 36 def datetime_column_date?(column) if %i[date_picker datetime_picker].include? column.search_ui column.search_ui == :date_picker else super end end |
#datetime_conversion_for_condition(column) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/active_scaffold/bridges/date_picker/ext.rb', line 28 def datetime_conversion_for_condition(column) if column.search_ui == :date_picker :to_date else super end end |
#format_for_date(column, value, format_name = column.options[:format]) ⇒ Object
44 45 46 |
# File 'lib/active_scaffold/bridges/date_picker/ext.rb', line 44 def format_for_date(column, value, format_name = column.[:format]) super column, value, format_name || (:default if column.search_ui == :date_picker) end |