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

avoid stack too deep with alias_method #1

Open
pedroteixeira opened this issue Dec 5, 2009 · 0 comments
Open

avoid stack too deep with alias_method #1

pedroteixeira opened this issue Dec 5, 2009 · 0 comments

Comments

@pedroteixeira
Copy link

Use something like what follows in deadlock_retry.rb
if !method_defined?(:transaction_without_deadlock_handling)
alias_method :transaction_without_deadlock_handling, :transaction
alias_method :transaction, :transaction_with_deadlock_handling
end

For some reason the the code was executed twice.

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

1 participant