diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-30 09:35:29 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-30 09:35:29 -0800 |
commit | cd4d9316591ab61e478f98e1697599cdffc11d8c (patch) | |
tree | a9c83fd7b9532e0a07900aa5117754b46f658c44 /activesupport/lib | |
parent | a2dad133d9f7cdf5c5ea38ec9ca01659f250a318 (diff) | |
parent | 8033d3370c56d8d69673c000182922228504706c (diff) | |
download | rails-cd4d9316591ab61e478f98e1697599cdffc11d8c.tar.gz rails-cd4d9316591ab61e478f98e1697599cdffc11d8c.tar.bz2 rails-cd4d9316591ab61e478f98e1697599cdffc11d8c.zip |
Merge pull request #13055 from dmitriy-kiriyenko/fix-segmentation-fault-it-ruby-2.0.0-p353
Fix segmentation fault in Ruby 2.0.0-p353.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/duration.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/duration.rb b/activesupport/lib/active_support/duration.rb index 87b6407038..7df4857c25 100644 --- a/activesupport/lib/active_support/duration.rb +++ b/activesupport/lib/active_support/duration.rb @@ -99,6 +99,14 @@ module ActiveSupport private + # We define it as a workaround to Ruby 2.0.0-p353 bug. + # For more information, check rails/rails#13055. + # It should be dropped once a new Ruby patch-level + # release after 2.0.0-p353 happens. + def ===(other) #:nodoc: + value === other + end + def method_missing(method, *args, &block) #:nodoc: value.send(method, *args, &block) end |