app/views/themes/base/attributes/_code.html.erb in bullet_train-themes-1.2.27 vs app/views/themes/base/attributes/_code.html.erb in bullet_train-themes-1.3.0
- old
+ new
@@ -1,10 +1,10 @@
<% object ||= current_attributes_object %>
<% strategy ||= current_attributes_strategy || :none %>
<% source ||= nil %>
<% url ||= nil %>
-<% if object.send(attribute).present? %>
+<% if object.public_send(attribute).present? %>
<%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
<code class="text-pink-600 font-light"><%= object.send(source || attribute) %></code>
<% end %>
<% end %>