Class: MrMime::Adapters::DeviseAdapter

Inherits:
Base
  • Object
show all
Defined in:
app/models/mr_mime/adapters/devise_adapter.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from MrMime::Adapters::Base

Instance Method Details

#set_current_user(user) ⇒ Object



6
7
8
9
# File 'app/models/mr_mime/adapters/devise_adapter.rb', line 6

def set_current_user(user)
  context.sign_out
  context. user.becomes(user_class)
end