1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/lib/active_model/validations
Jacopo 6657e3428b Change Numericaly validator to use round
f72f743 introduces truncate(scale) in the Numericality validator.
This behaviour conflicts with AR decimal type conversion,
which uses round(scale) instead.

Changes the Numericality validator in order to use
round(scale) for consistency.
2021-01-13 22:37:01 +01:00
..
absence.rb Fix a typo in AbsenceValidator 2020-03-21 21:24:38 +09:00
acceptance.rb Fix multi-threaded issue for AcceptanceValidator 2019-11-03 12:55:30 +09:00
callbacks.rb Move set_options_for_callback into Callbacks::ClassMethods 2020-12-29 16:20:13 +09:00
clusivity.rb Enumerable#include? and cover? are both public methods 2020-10-02 13:12:55 +09:00
confirmation.rb *_confirmation is defined as a public method 2020-10-02 13:14:15 +09:00
exclusion.rb Passing in a Hash instance as kwargs parameters requires the "double splat" prefix 2019-09-04 12:45:27 +09:00
format.rb Passing in a Hash instance as kwargs parameters requires the "double splat" prefix 2019-09-04 12:45:27 +09:00
helper_methods.rb
inclusion.rb Passing in a Hash instance as kwargs parameters requires the "double splat" prefix 2019-09-04 12:45:27 +09:00
length.rb ==, >=, and <= are public methods 2020-10-02 13:18:09 +09:00
numericality.rb Change Numericaly validator to use round 2021-01-13 22:37:01 +01:00
presence.rb Passing in a Hash instance as kwargs parameters requires the "double splat" prefix 2019-09-04 12:45:27 +09:00
validates.rb Tiny doc fix in .validates 2020-03-17 11:08:50 -04:00
with.rb