Module: UsersHelper

Defined in:
app/helpers/users_helper.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Instance Method Details

#logged_in_user?(user) ⇒ Boolean

Returns:

  • (Boolean)

3
4
5
# File 'app/helpers/users_helper.rb', line 3

def logged_in_user?(user)
  yield if user == current_user
end