Skip to content
Snippets Groups Projects
Commit 20e38103 authored by Oleg Valter's avatar Oleg Valter
Browse files

renamed User#same? method to User#same_as?

parent ac5ad731
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ class User < ApplicationRecord
# Checks whether this user is the same as a given user
# @param [User] user user to compare with
def same?(user)
def same_as?(user)
id == user.id
end
......
......
......@@ -87,7 +87,7 @@
</div>
</div>
<% end %>
<% if current_user&.same?(@user) %>
<% if current_user&.same_as?(@user) %>
<%= link_to qr_login_code_path, class: 'button is-outlined is-small' do %>
<i class="fas fa-mobile-alt"></i> Mobile Sign In
<% end %>
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment