Class: Guest

Inherits:
Object
  • Object
show all
Defined in:
app/models/guest.rb

Class Method Summary collapse

Class Method Details

.can?(action, subject = :global) ⇒ Boolean

Returns:

  • (Boolean)

5
6
7
# File 'app/models/guest.rb', line 5

def can?(action, subject = :global)
  Ability.allowed?(nil, action, subject)
end