Sha256: b05952147780fddc4e9aa6b4c27ecab9b6adeb389ee561db3cc6ff6845ce4fd6
Contents?: true
Size: 504 Bytes
Versions: 5
Compression:
Stored size: 504 Bytes
Contents
<% association = model.reflections[field.to_s] %> <% if association %> <% field_key = model.ransackable_scopes.include?(field) ? field : "#{field}_id_eq" %> <% desc = association.klass.method_defined?(:admin_label) ? :admin_label : :to_s %> <% collection = association.klass.send(association.klass.respond_to?(:admin_scope) ? :admin_scope : :all) %> <%= form.label(label, class: 'filter-label') %> <%= form.collection_select(field_key, collection, :id, desc, include_blank: true) %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems