Module: MrMime::ImpersonationHelper

Defined in:
app/helpers/mr_mime/impersonation_helper.rb

Instance Method Summary collapse

Instance Method Details

#button_to_impersonate(user_id, options = {}) ⇒ Object



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

def button_to_impersonate(user_id, options = {})
  render 'mr_mime/impersonate_button', options.merge(user_id: user_id)
end

#impersonated_emailObject



7
8
9
# File 'app/helpers/mr_mime/impersonation_helper.rb', line 7

def impersonated_email
  current_user.try(:email)
end