Open pascal-za opened 13 years ago
I ran into this today. An unpersisted model was set with an invalid state to prove that the validations would not allow it and I later added an :if => :my_state? validation conditional and then validating the invalid model raised an exception.
Given
The error isn't immediately obvious to the user/developer.
Possible solutions:
current_state
specifically informing the user of the invalid stateLet me know what direction you want to go with this and I'll submit a patch.