Class: PactBroker::DefaultPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/policies.rb

Defined Under Namespace

Classes: Scope

Instance Method Summary collapse

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

Returns:

  • (Boolean)


22
23
24
# File 'lib/pact_broker/policies.rb', line 22

def create?
  true
end

#delete?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/pact_broker/policies.rb', line 18

def delete?
  true
end

#read?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/pact_broker/policies.rb', line 10

def read?
  true
end

#update?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/pact_broker/policies.rb', line 14

def update?
  true
end