7 lines
215 B
Ruby
7 lines
215 B
Ruby
class Current < ActiveSupport::CurrentAttributes
|
|
attribute :session, :identity_token
|
|
attribute :http_method, :request_id, :user_agent, :ip_address, :referrer
|
|
|
|
delegate :user, to: :session, allow_nil: true
|
|
end
|