parent
96ca8b7e7c
commit
452be0c49c
10 changed files with 59 additions and 10 deletions
3
app/models/current.rb
Normal file
3
app/models/current.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
class Current < ActiveSupport::CurrentAttributes
|
||||
attribute :user
|
||||
end
|
3
app/models/guest_user.rb
Normal file
3
app/models/guest_user.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
class GuestUser
|
||||
def registered? = false
|
||||
end
|
|
@ -1,3 +1,5 @@
|
|||
class User < ApplicationRecord
|
||||
has_secure_password
|
||||
|
||||
def registered? = true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue