Module: Devise::Models::Traceable

Defined in:
lib/devise_traceable/model.rb

Overview

  • resource_id

  • sign_in_at

  • sign_out_at

Instance Method Summary collapse

Instance Method Details

#stamp!Object



12
13
14
15
# File 'lib/devise_traceable/model.rb', line 12

def stamp!
  new_current = Time.now
  "#{self.class}Tracing".constantize.create(:sign_in_at => self., :sign_out_at => new_current, "#{self.class}".foreign_key.to_sym => self.id)
end