Module: DeviseSessionable::ActsAsSessionable::ClassMethods

Defined in:
lib/devise_sessionable/acts_as_sessionable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_sessionable(_options = {}) ⇒ Object



9
10
11
12
13
14
# File 'lib/devise_sessionable/acts_as_sessionable.rb', line 9

def acts_as_sessionable(_options = {})
  has_many :sessions,
           as: :authable,
           class_name: 'DeviseSessionable::Session',
           dependent: :destroy
end