Module: AASM::DslHelper

Included in:
Core::Event, Core::Transition
Defined in:
lib/aasm/dsl_helper.rb

Defined Under Namespace

Classes: Proxy

Instance Method Summary collapse

Instance Method Details

#add_options_from_dsl(options, valid_keys, &block) ⇒ Object



25
26
27
28
29
# File 'lib/aasm/dsl_helper.rb', line 25

def add_options_from_dsl(options, valid_keys, &block)
  proxy = Proxy.new(options, valid_keys, self)
  proxy.instance_eval(&block)
  proxy.options
end