Installed authentication-zero
This commit is contained in:
6
app/models/current.rb
Normal file
6
app/models/current.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class Current < ActiveSupport::CurrentAttributes
|
||||
attribute :session
|
||||
attribute :user_agent, :ip_address
|
||||
|
||||
delegate :user, to: :session, allow_nil: true
|
||||
end
|
||||
Reference in New Issue
Block a user