Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction inside an iteration: undefined method `defining_class' for #<Duby::AST::Block:0xc98b07> #18

Open
hakunin opened this issue Oct 26, 2010 · 1 comment

Comments

@hakunin
Copy link
Contributor

hakunin commented Oct 26, 2010

def run2
  5.times { |i|
    Model.transaction do
      puts "dostuff"
    end
  }    
end  

Results in

tasks/check_new_payments_task.duby:84: undefined method `defining_class' for #<Duby::AST::Block:0x91fa78>
      Model.transaction do
^^^^^^^^^^^^^^^^^^^^^^^^^^^
        puts "dostuff"
^^^^^^^^^^^^^^^^^^^^^^^
      end
^^^^^^^^^
@baroquebobcat
Copy link
Member

try using baroquebobcat/bitescript instead of headius bitescript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants