Sha256: 40ae1cab2465aab141c71d7feb416f4f461b6043754acb3f836d267d809be228
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 Bytes
Contents
module CanTango class Ability module EngineHelpers def execute_engines! each_engine {|engine| engine.new(self).execute! if engine } end def each_engine &block engines.execution_order.each do |name| yield engines.registered[name] if engines.active? name end end def opts_engines_off? options[:engines] == :off end def engines_on? CanTango.config.engines.any?(:on) && !opts_engines_off? end def engines CanTango.config.engines end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.9.3.2 | lib/cantango/ability/engine_helpers.rb |