Class: PactBroker::DefaultPolicy
- Inherits:
-
Object
- Object
- PactBroker::DefaultPolicy
- Defined in:
- lib/pact_broker/policies.rb
Defined Under Namespace
Classes: Scope
Instance Method Summary collapse
- #create? ⇒ Boolean
- #delete? ⇒ Boolean
-
#initialize(current_user, resource) ⇒ DefaultPolicy
constructor
A new instance of DefaultPolicy.
- #read? ⇒ Boolean
- #update? ⇒ Boolean
Constructor Details
#initialize(current_user, resource) ⇒ DefaultPolicy
Returns a new instance of DefaultPolicy.
5 6 7 8 |
# File 'lib/pact_broker/policies.rb', line 5 def initialize(current_user, resource) @current_user = current_user @resource = resource end |
Instance Method Details
#create? ⇒ Boolean
22 23 24 |
# File 'lib/pact_broker/policies.rb', line 22 def create? true end |
#delete? ⇒ Boolean
18 19 20 |
# File 'lib/pact_broker/policies.rb', line 18 def delete? true end |
#read? ⇒ Boolean
10 11 12 |
# File 'lib/pact_broker/policies.rb', line 10 def read? true end |
#update? ⇒ Boolean
14 15 16 |
# File 'lib/pact_broker/policies.rb', line 14 def update? true end |