Class: SkinnyControllers::Policy::AllowAll

Inherits:
Base
  • Object
show all
Defined in:
lib/skinny_controllers/policy/allow_all.rb

Instance Attribute Summary

Attributes inherited from Base

#authorized_via_parent, #object, #user

Instance Method Summary collapse

Methods inherited from Base

#initialize, #method_missing

Constructor Details

This class inherits a constructor from SkinnyControllers::Policy::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class SkinnyControllers::Policy::Base

Instance Method Details

#default?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/skinny_controllers/policy/allow_all.rb', line 4

def default?
  true
end

#read?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/skinny_controllers/policy/allow_all.rb', line 8

def read?
  true
end

#read_all?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/skinny_controllers/policy/allow_all.rb', line 12

def read_all?
  true
end