1 <% if show_attributes -%>
3 <% attrs = inspect_model.attributes -%>
4 <% max = attrs.keys.max { |a,b| a.length <=> b.length } -%>
5 <% attrs.keys.sort.each do |attr| -%>
6 * <%= "%*-s: %s" % [max.length, attr, object_to_yaml(attrs[attr]).gsub(/\n/, "\n ").strip] %>
10 <% if show_instance_variables -%>
12 <% inspect_model.instance_variables.sort.each do |variable| -%>
13 <%- next if variable == "@attributes" -%>
14 * <%= variable %>: <%= inspect_value(inspect_model.instance_variable_get(variable)) %>