Sha256: 5d4b361e2dd294fa21dcbf17dfdba243520b933a7a438cf972f17a2c183d303d
Contents?: true
Size: 432 Bytes
Versions: 54
Compression:
Stored size: 432 Bytes
Contents
module FactoryGirl class CallbacksObserver def initialize(callbacks, evaluator) @callbacks = callbacks @evaluator = evaluator end def update(name, result_instance) callbacks_by_name(name).each do |callback| callback.run(result_instance, @evaluator) end end private def callbacks_by_name(name) @callbacks.select {|callback| callback.name == name } end end end
Version data entries
54 entries across 54 versions & 4 rubygems