Sha256: f0b9c835ac9be67937b79a1665abe626b16d2fc00b5be9ce2e2691c0661a0565
Contents?: true
Size: 781 Bytes
Versions: 29
Compression:
Stored size: 781 Bytes
Contents
- if presenter.model_class.reflect_on_association(field.name.to_sym) - presenter.model_class.reflect_on_association(field.name.to_sym) = select_tag field.name.to_sym, options_for_select(presenter.model_class.reflect_on_association(field.name.to_sym).klass.list_for_select(reverse: true, add_empty_option: true)) - else - if presenter.model_class.columns_hash[field.name.to_s].type == :boolean = select_tag field.name, options_for_select([['',''],['true', 'true'],['false', 'false']]) - elsif presenter.model_class.columns_hash[field.name.to_s].type == :datetime = text_field_tag field.name, "", "data-operator" => field.advanced_search_operator, :class => "datepicker" - else = text_field_tag field.name, "", "data-operator" => field.advanced_search_operator
Version data entries
29 entries across 29 versions & 1 rubygems