mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 22:34:47 +00:00
9 lines
165 B
Ruby
9 lines
165 B
Ruby
class Session < ApplicationRecord
|
|
belongs_to :user
|
|
|
|
before_create do
|
|
self.user_agent = Current.user_agent
|
|
self.ip_address = Current.ip_address
|
|
end
|
|
end
|