Module: UsersHelper

Defined in:
app/helpers/users_helper.rb

Instance Method Summary collapse

Instance Method Details

#logged_in_user?(user) ⇒ Boolean

Returns:

  • (Boolean)

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

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