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
Ryuta Kamizono 4cc438a1df Extract read_attribute_for_validation for per-validator customization
The model global `read_attribute_for_validation` is not fit for some
validators (specifically for numericality validator).

To allow per-validator customization for attribute value, it extracts
`read_attribute_for_validation` in `EachValidator`.
2020-07-29 18:11:49 +09:00
..
attribute
attribute_set PERF: Avoid extra delegation to LazyAttributeHash 2020-06-15 09:26:24 +09:00
locale
serializers
type Allow ISO 8601 formatted string for fast_string_to_time 2020-06-20 10:50:08 +09:00
validations Extract read_attribute_for_validation for per-validator customization 2020-07-29 18:11:49 +09:00
attribute.rb PERF: 35% faster attributes for readonly usage 2020-06-13 16:01:08 +09:00
attribute_assignment.rb Change safe guard to check for each_pair instead of stringify_keys 2020-02-07 11:36:35 -05:00
attribute_methods.rb undef_method can take varargs 2020-05-08 23:58:01 +09:00
attribute_mutation_tracker.rb Lazy allocate @forced_changes 2020-06-14 13:50:07 +09:00
attribute_set.rb PERF: Avoid extra delegation to LazyAttributeHash 2020-06-15 09:26:24 +09:00
attributes.rb PERF: 15% faster attribute access 2020-06-05 09:12:21 +09:00
callbacks.rb
conversion.rb
dirty.rb Promote clear_attribute_change as attribute methods 2020-06-04 04:17:17 +09:00
error.rb Make inspect look more like regular Object#inspect 2020-05-29 21:53:35 +02:00
errors.rb Reference updated errors attribute names method in deprecation warning 2020-04-22 09:08:42 -07:00
forbidden_attributes_protection.rb
gem_version.rb
lint.rb
model.rb
naming.rb Address to false negative for Performance/DeletePrefix,DeleteSuffix 2020-06-14 13:04:47 +09:00
nested_error.rb Document on ActiveModel::Errors changes 2020-01-14 23:55:09 +08:00
railtie.rb
secure_password.rb
serialization.rb Optimise serializable_hash when options are empty 2020-05-22 00:04:31 +01:00
translation.rb Passing in a Hash instance as kwargs parameters requires the "double splat" prefix 2019-09-04 12:45:27 +09:00
type.rb
validations.rb Prefer no allocation start/end_with? over String#[] == 2020-05-29 10:20:13 +09:00
validator.rb Extract read_attribute_for_validation for per-validator customization 2020-07-29 18:11:49 +09:00
version.rb