lib/generators/katapult/views/templates/show.html.haml in katapult-0.3.0 vs lib/generators/katapult/views/templates/show.html.haml in katapult-0.4.0

- old
+ new

@@ -33,7 +33,9 @@ = simple_format(<%= model_attribute %>) <%- when :flag -%> = <%= model_attribute %> ? 'Yes' : 'No' <%- when :datetime -%> = l(<%= model_attribute %>.to_date) if <%= model_attribute %> + <%- when :foreign_key -%> + = <%= model_attribute.sub /_id$/, '' %> <%- end -%> <%- end -%>