Method: ActiveModel::Type::Value#==

Defined in:
activemodel/lib/active_model/type/value.rb

#==(other) ⇒ Object Also known as: eql?



121
122
123
124
125
126
# File 'activemodel/lib/active_model/type/value.rb', line 121

def ==(other)
  self.class == other.class &&
    precision == other.precision &&
    scale == other.scale &&
    limit == other.limit
end