Sha256: c77b1aa517220810f81f160d28b6f6222ead64043f8103cc210f07b5402120fc
Contents?: true
Size: 799 Bytes
Versions: 16
Compression:
Stored size: 799 Bytes
Contents
<%- attributes.each do |attribute| -%> <p> <b><%%= <%= i18n_t_a(singular_table_name, attribute.name) %> %>:</b> <%- if @beautiful_attributes.include?(attribute.name + ':price') then -%> <%%= number_to_currency(@<%= singular_table_name %>.<%= attribute.name %>) %> <%- elsif @beautiful_attributes.include?(attribute.name + ':boolean') then -%> <%%= t((@<%= singular_table_name %>.<%= attribute.name %> ? "yes".to_sym : "no".to_sym)) %> <%- elsif @beautiful_attributes.include?(attribute.name + ':references') then -%> <%%= (@<%= singular_table_name %>.<%= attribute.name %>.nil? ? "" : @<%= singular_table_name %>.<%= attribute.name %>.caption) %> <%- else -%> <%%= @<%= singular_table_name %>.<%= attribute.name %> %> <%- end -%> </p> <%- end -%>
Version data entries
16 entries across 16 versions & 1 rubygems