Sha256: d2561485ed38f4d1aa68794324d1af3286536edd7bbf52f4a9b1fb9b7e0f18ae
Contents?: true
Size: 490 Bytes
Versions: 4
Compression:
Stored size: 490 Bytes
Contents
require 'aldous/controller/action_execution_service' module Aldous module Controller include Aldous def self.included(base) base.extend ClassMethods end module ClassMethods def controller_actions(*actions) actions.each do |action_name| define_method action_name do ::Aldous::Controller::ActionExecutionService.perform(self, self.class.const_get(action_name.to_s.classify)) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
aldous-1.1.3 | lib/aldous/controller.rb |
aldous-1.1.2 | lib/aldous/controller.rb |
aldous-1.0.1 | lib/aldous/controller.rb |
aldous-1.0.0 | lib/aldous/controller.rb |