geekq / workflow

Ruby finite-state-machine-inspired API for modeling workflow
MIT License
1.75k stars 207 forks source link

When ever I try to update model attributes during a transaction, i get a stack level too deep error! #156

Closed THPubs closed 9 years ago

THPubs commented 9 years ago

Here's my new workflow definition :

workflow do
    state :new do
        event :submit, transitions_to: :submitted
    end
end

Whenever I try to update attributes in a transaction it throws a SystemStackError stack level too deep and points to the line I update attributes:

def submit
    #..calculations
    self.update_attribute(:sizes, @sizes)
end