Sha256: 37a2804f02b2248d27e1199081e816e9e39f4c2278578f94fea73d52cc9c1fe9

Contents?: true

Size: 512 Bytes

Versions: 3

Compression:

Stored size: 512 Bytes

Contents

<%- attributes.each do |a| -%>
  <%- next if @beautiful_attributes.include?(a.name + ':color') -%>
  <%- attribute = "" -%>
  <%- caption = a.name.capitalize -%>
  <%- if @beautiful_attributes.include?(a.name + ':references') then -%>
    <%- attribute = "_id" -%>
  <%- elsif @beautiful_attributes.include?(a.name + ':richtext') then -%>
    <%- attribute = "_fulltext" -%>
  <%- end -%>
      <%%= ransack_field("<%= singular_table_name %>", "<%= a.name %><%= attribute %>", f, "<%= caption %>") %>
<%- end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
beautiful_scaffold-0.3.6 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.5 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.4 lib/generators/templates/app/views/partials/_index_search.html.erb