<% if model.is_a?(ActiveRecord::Base) %> <%= created_by_info(model) %> <% end %> <%= audit_link(model) %> <%= render "audits", model: model if params[:show_log] %>