diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-19 13:41:02 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 13:41:02 +0900 |
commit | 84bd9adafde36d0192849649b86ffcd4e59e5e11 (patch) | |
tree | d264a76dc0b85041f31f4b4f6b549b431da97715 /activemodel | |
parent | 02e6abd8fd5ad883fd2f29fd5850e650dd121805 (diff) | |
parent | b09d8f6bb3a23cd907d084103fb5b4c02479a39b (diff) | |
download | rails-84bd9adafde36d0192849649b86ffcd4e59e5e11.tar.gz rails-84bd9adafde36d0192849649b86ffcd4e59e5e11.tar.bz2 rails-84bd9adafde36d0192849649b86ffcd4e59e5e11.zip |
Merge pull request #35310 from kamipo/dont_allow_invalid_value_matches_to_nil
Don't allow `where` with invalid value matches to nil values
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/type/time.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/type/time.rb b/activemodel/lib/active_model/type/time.rb index 16d3efb728..61847a4ce7 100644 --- a/activemodel/lib/active_model/type/time.rb +++ b/activemodel/lib/active_model/type/time.rb @@ -13,10 +13,6 @@ module ActiveModel :time end - def serialize(value) - super || value - end - def user_input_in_time_zone(value) return unless value.present? |