mirror of
https://github.com/we-promise/sure.git
synced 2026-04-08 06:44:52 +00:00
8 lines
207 B
Ruby
8 lines
207 B
Ruby
class Current < ActiveSupport::CurrentAttributes
|
|
attribute :session
|
|
attribute :user_agent, :ip_address
|
|
|
|
delegate :user, to: :session, allow_nil: true
|
|
delegate :family, to: :user, allow_nil: true
|
|
end
|