Sha256: 64d1f9fa2de4645d953e61396a2666a3188b91c25b1d5ad8768b873eb99a6799
Contents?: true
Size: 699 Bytes
Versions: 11
Compression:
Stored size: 699 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 -%> <%- { :created_at => "Created At", :updated_at => "Updated At", :id => "Id" }.each{ |k,v| -%> <%%= ransack_field("<%= singular_table_name %>", "<%= k.to_s %>", f, "<%= v %>") %> <%- } -%>
Version data entries
11 entries across 11 versions & 1 rubygems