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