Description
Executes each method in a chain one by one
Params
- [Array] chain - array of methods to execute
Used in
Source code
# lib/resting_pug/actions.rb
def run_chain(chain)
chain.each do |action|
self.send(action)
end
end
Executes each method in a chain one by one
# lib/resting_pug/actions.rb
def run_chain(chain)
chain.each do |action|
self.send(action)
end
end