Module: UserMasqueradeConcern

Extended by:
ActiveSupport::Concern
Included in:
User
Defined in:
app/models/concerns/user_masquerade_concern.rb

Instance Method Summary collapse

Instance Method Details

#can_masquerade?Boolean

Returns:

  • (Boolean)

5
6
7
# File 'app/models/concerns/user_masquerade_concern.rb', line 5

def can_masquerade?
  primary_email_record.confirmed?
end