Sha256: 573ddc4023e1c294561672567ba1318de244cb3c9b0dcfc8497af005a201ae31

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

<% field_key = model.ransackable_scopes.include?(field) ? field : "#{field}_eq" %>
<% values = [[t('administrate_ransack.filters.no'), false], [t('administrate_ransack.filters.yes'), true]] %>

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

Version data entries

5 entries across 5 versions & 1 rubygems

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