Sha256: 64b82376a614df09e193cc8c5c711f9042fd0e7f1ad0afa886cffa14e8228e8b

Contents?: true

Size: 282 Bytes

Versions: 4

Compression:

Stored size: 282 Bytes

Contents

<% field_key = model.ransackable_scopes.include?(field) ? field : "#{field}_eq" %>
<% collection = (type.respond_to?(:options) ? type.options[:collection] : []) || [] %>

<%= form.label(label, class: 'filter-label') %>
<%= form.select(field_key, collection, include_blank: true) %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
administrate_ransack-0.6.0 app/views/administrate_ransack/components/_field_select.html.erb
administrate_ransack-0.5.1 app/views/administrate_ransack/components/_field_select.html.erb
administrate_ransack-0.5.0 app/views/administrate_ransack/components/_field_select.html.erb
administrate_ransack-0.4.1 app/views/administrate_ransack/components/_field_select.html.erb