Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ActiveRecord::Enum, model.status_was return a String value, not integer #13267
@huacnlee as mentioned previously, we can't simply overwrite a single method from
referenced this pull request
Dec 18, 2013
I get that its using strings internally, and I assume you can feed it actual strings instead of symbols and have it work with that, my issue is that such asymmetrical behaviour in general violates the Principle of Least Surprise, and adds a degree of confusion to people either new to the framework, or new to the feature.
@wyaeld I disagree. If only