Skip to content

NumericalityValidator support for activemodel #382

@ggpasqualino

Description

@ggpasqualino

In the commit rails/rails@f888fad it was introduced the method record_attribute_changed_in_place? to ActiveModel::Validations::NumericalityValidator which calls record.attribute_changed_in_place?.
The intention was that if this method was added by ActiveRecord::AttributeMethods::Dirty then it would be called.
The problem is that Her::Model doesn't include that and doesn't implement that but it responds to that because it assumes on https://github.com/remiprev/her/blob/master/lib/her/model/attributes.rb#L74 that attribute_changed_in_place is a new attribute.

Her version: 0.8.1
Active model version: 4.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions