First of all, thank you for writing such a good gem. :-) ``` ruby class Model < AR as_enum :state, { accept: 0, reject: 1 } end Model.states[:wrong_state] => nil ``` It seems to be better to raise an exception in such cases.
First of all, thank you for writing such a good gem. :-)
It seems to be better to raise an exception in such cases.