Class: Refinery::Authentication::Devise::NilUser

Inherits:
Core::NilUser
  • Object
show all
Defined in:
app/models/refinery/authentication/devise/nil_user.rb

Instance Method Summary collapse

Instance Method Details

#can_edit?(user) ⇒ Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


12
13
14
# File 'app/models/refinery/authentication/devise/nil_user.rb', line 12

def has_role?(role)
  false
end

#landing_urlObject



24
25
26
# File 'app/models/refinery/authentication/devise/nil_user.rb', line 24

def landing_url
  Refinery::Core.backend_path
end

#pluginsObject



8
9
10
# File 'app/models/refinery/authentication/devise/nil_user.rb', line 8

def plugins
  Refinery::Plugins.new
end