mirror of
https://github.com/we-promise/sure.git
synced 2026-07-27 20:22:16 +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
|