Class: Rails::Surrender::DefaultAbility

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/surrender/default_ability.rb

Overview

If cancancan is not installed, this class will be instantiated to allow all models to render.

Instance Method Summary collapse

Instance Method Details

#can?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/rails/surrender/default_ability.rb', line 7

def can?(*)
  true
end