pluginaweek / state_machine

Adds support for creating state machines for attributes on any Ruby class
http://www.pluginaweek.org
MIT License
3.74k stars 505 forks source link

StateMachine::Machine.silence_method_conflicts #325

Closed DVG closed 7 years ago

DVG commented 9 years ago

Add the ability to silence the warning message when states and class methods conflict, without overriding the methods on the superclass.

We have a couple old state machines which, quite unwisely, conflict with ActiveRecord method names. While there are long term plans to fix them, it'd be quite nice to clear the noise in the meantime