<% object ||= current_attributes_object %> <% strategy ||= current_attributes_strategy || :none %> <% url ||= nil %> <%= render 'shared/attributes/attribute', attribute: attribute, strategy: strategy, url: url do %> <% if object.send(success_method) %> <% elsif object.send(attempting_method) %> <% elsif object.send(failure_method) %> <% end %> <% end %>