misadventure/app/models/current.rb

4 lines
122 B
Ruby

class Current < ActiveSupport::CurrentAttributes
attribute :session
delegate :user, to: :session, allow_nil: true
end