Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Jun 15, 2023
1 parent b2a5c3d commit 9dc29c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/audits1984/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Audits1984
module ApplicationHelper
def get_auditor_name(auditor)
def auditor_name_for(auditor)
if auditor == Audits1984::Current.auditor
"You"
else
Expand Down
2 changes: 1 addition & 1 deletion app/views/audits1984/sessions/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ul class="mb-6">
<% session.audits.except(&:new_record?).each do |audit| %>
<li> <%= audit.status.humanize %>
by <%= get_auditor_name(audit.auditor) %>
by <%= auditor_name_for(audit.auditor) %>
on <%= format_date_and_time(audit.created_at) %>
</li>
<% end %>
Expand Down

0 comments on commit 9dc29c9

Please sign in to comment.