Module: Trailblazer::V1_1::Operation::Module::Included
- Defined in:
- lib/trailblazer/1.1/operation/module.rb
Overview
TODO: use representable’s inheritance mechanism.
Instance Method Summary collapse
Instance Method Details
#included(base) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/trailblazer/1.1/operation/module.rb', line 8 def included(base) super instructions.each { |cfg| method = cfg[0] args = cfg[1].dup block = cfg[2] # options = args.extract_options!.dup # we need to duplicate options has as AM::Validations messes it up later. base.send(method, *args, &block) } # property :name, {} do .. end end |