Can you yield items inside an :after callback? I got LocalJumpException when I execute the code below
require 'aasm'
class TestClass
include AASM
aasm do
state :created, initial: true
state :running
event :run do
transitions from: :created,
to: :running,
after: proc { yield 1 }
end
end
end
TestClass.new.run! { |v| puts v }