mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-02-21 12:10:34 +09:00
10 lines
194 B
Ruby
10 lines
194 B
Ruby
class Current < ActiveSupport::CurrentAttributes
|
|
attribute :user, :request
|
|
|
|
delegate :host, :protocol, to: :request, prefix: true, allow_nil: true
|
|
|
|
def account
|
|
Account.first
|
|
end
|
|
end
|