troessner/transitions

Stack Level Too Deep Bug

dougc84 opened this issue · 2 comments

I'm using Ruby 1.9.3 and Rails 3.2.6 - I've not tried this on any other version, so I'm not sure if this is a ruby bug or something else.

I wanted to clean up my code, as the model I'm using this with has 500+ lines of code. And that drives me nuts. I put the methods called on transition into a concern, and when I try to change states, I get the following message:

SystemStackError: stack level too deep
    from /Users/doug/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/irb/workspace.rb:80
Maybe IRB bug!

Again, not sure if this is related to ruby, rails, or this gem, but I figured I'd at least let you know.

Hey @dougc84,

please add the complete stacktrace and the relevant code that is involved with it to this issue - you don't have to show the complete 500 lines, just the state machine and the lines that are mentioned in the last lines of the stacktrace..:-)

Closing this for now without further information - @dougc84 feel free to reopen this if you can a) reproduce this and b) provide enough information for me to reproduce. For now I just assume that the stacktrace was misleading and it wasn't a problem with the transitions gem.