8e13ce5b78
I had reintroduced this indacb53b8after David removed it in6bbf68a4, but now I agree we don't need it. Also, fix a CORS error when trying to redirect a user to an untenanted path after login (see https://fizzy.37signals.com/5986089/collections/2/cards/1032).
7 lines
198 B
Ruby
7 lines
198 B
Ruby
class Current < ActiveSupport::CurrentAttributes
|
|
attribute :session
|
|
attribute :http_method, :request_id, :user_agent, :ip_address, :referrer
|
|
|
|
delegate :user, to: :session, allow_nil: true
|
|
end
|