Implemented attribute_changed_in_place? on models so validates_numericality_of validation will work
This seems to work, and specs are passing, but let me know if there's a more natural way to do this, or if the method should be added in a different module.
For our information, what is the current status of the project? Is it being maintained? Can we expect pull requests to be merged at some point? Thanks!
hi @glappen thanks for the PR! We're considering an update to ActiveModel which would give us attribute_changed_in_place?Would that cover what you need?
I've run into this but I'm not sure about this change as I think attribute_changed_in_place? is meant to detect changes to mutable objects that would not be visible in the changes hash. We don't have a raw database representation of the attributes to compare against like ActiveRecord does though so maybe this is the best we can do. A newer ActiveModel would be good but I guess that means Rails 5?