aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/current.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/current.rb')
-rw-r--r--app/models/current.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/current.rb b/app/models/current.rb
new file mode 100644
index 0000000..2bef56d
--- /dev/null
+++ b/app/models/current.rb
@@ -0,0 +1,4 @@
+class Current < ActiveSupport::CurrentAttributes
+ attribute :session
+ delegate :user, to: :session, allow_nil: true
+end