aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides/levenshtein.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-08 14:49:46 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-08 14:52:06 -0700
commit42418cfc94d1356d35d28d786f63e7fab9406ad6 (patch)
treee53ab56d92456a6a97bc5a8799490baba27d6430 /guides/rails_guides/levenshtein.rb
parent7daeb98c769a3968a2ccf48ff593909bf1a9d7b0 (diff)
downloadrails-42418cfc94d1356d35d28d786f63e7fab9406ad6.tar.gz
rails-42418cfc94d1356d35d28d786f63e7fab9406ad6.tar.bz2
rails-42418cfc94d1356d35d28d786f63e7fab9406ad6.zip
Allow custom handling of non-standard types in `time_zone_conversion`
PostgreSQL for example, allows infinity as a valid value for date time columns. The PG type has explicit handling for that case. However, time zone conversion will end up trampling that handling. Unfortunately, we can't call super and then convert time zones. However, if we get back nil from `.in_time_zone`, it's something we didn't expect so we can let the superclass handle it. Fixes #17971
Diffstat (limited to 'guides/rails_guides/levenshtein.rb')
0 files changed, 0 insertions, 0 deletions