Module: CommandServiceObject::ControllerHelper
- Defined in:
- lib/command_service_object/helpers/controller_helper.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 |
# File 'lib/command_service_object/helpers/controller_helper.rb', line 7 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#execute(cmd) ⇒ Object
20 21 22 |
# File 'lib/command_service_object/helpers/controller_helper.rb', line 20 def execute(cmd) ApplicationService.call(cmd) end |