Class: Entitlements::Backend::Dummy::Controller

Inherits:
BaseController show all
Includes:
Contracts::Core
Defined in:
lib/entitlements/backend/dummy/controller.rb

Constant Summary collapse

C =
::Contracts

Constants inherited from BaseController

BaseController::COMMON_GROUP_CONFIG

Instance Attribute Summary

Attributes inherited from BaseController

#actions

Instance Method Summary collapse

Methods included from Contracts::Core

common, extended, included

Methods inherited from BaseController

identifier, #initialize, #print_differences, priority, #priority, register

Constructor Details

This class inherits a constructor from Entitlements::Backend::BaseController

Instance Method Details

#apply(caction) ⇒ Object



70
71
72
# File 'lib/entitlements/backend/dummy/controller.rb', line 70

def apply(caction)
  # This does nothing.
end

#calculateObject



49
50
51
52
# File 'lib/entitlements/backend/dummy/controller.rb', line 49

def calculate
  # No point in calculating anything. Any references herein will be calculated automatically.
  @actions = []
end

#change_countObject



39
40
41
# File 'lib/entitlements/backend/dummy/controller.rb', line 39

def change_count
  super
end

#preapplyObject



60
61
62
# File 'lib/entitlements/backend/dummy/controller.rb', line 60

def preapply
  # This does nothing.
end

#prefetchObject



19
20
21
# File 'lib/entitlements/backend/dummy/controller.rb', line 19

def prefetch
  # This does nothing.
end

#validateObject



29
30
31
# File 'lib/entitlements/backend/dummy/controller.rb', line 29

def validate
  # This does nothing.
end

#validate_config!(key, data) ⇒ Object



81
82
83
# File 'lib/entitlements/backend/dummy/controller.rb', line 81

def validate_config!(key, data)
  # Do nothing to validate. Pass whatever arguments you want, and this will just ignore them!
end