Class: Refinery::Authentication::Devise::NilUser
- Inherits:
-
Core::NilUser
- Object
- Core::NilUser
- Refinery::Authentication::Devise::NilUser
- Defined in:
- app/models/refinery/authentication/devise/nil_user.rb
Instance Method Summary collapse
- #can_edit?(user) ⇒ Boolean
- #has_plugin?(name) ⇒ Boolean
- #has_role?(role) ⇒ Boolean
- #landing_url ⇒ Object
- #plugins ⇒ Object
Instance Method Details
#can_edit?(user) ⇒ Boolean
20 21 22 |
# File 'app/models/refinery/authentication/devise/nil_user.rb', line 20 def can_edit?(user) false end |
#has_plugin?(name) ⇒ Boolean
16 17 18 |
# File 'app/models/refinery/authentication/devise/nil_user.rb', line 16 def has_plugin?(name) false end |
#has_role?(role) ⇒ Boolean
12 13 14 |
# File 'app/models/refinery/authentication/devise/nil_user.rb', line 12 def has_role?(role) false end |
#landing_url ⇒ Object
24 25 26 |
# File 'app/models/refinery/authentication/devise/nil_user.rb', line 24 def landing_url Refinery::Core.backend_path end |
#plugins ⇒ Object
8 9 10 |
# File 'app/models/refinery/authentication/devise/nil_user.rb', line 8 def plugins Refinery::Plugins.new end |