diff options
author | thedarkone <thedarkone2@gmail.com> | 2011-05-21 15:32:20 +0200 |
---|---|---|
committer | thedarkone <thedarkone2@gmail.com> | 2011-05-21 15:32:20 +0200 |
commit | 03cd88a07221a1511c9d06fe4173052bb5554d0b (patch) | |
tree | 755e054e50439350cfc1fb8cfc2f3c36127e53f4 /activesupport/lib/active_support/duration.rb | |
parent | 1a959ad72fc92a82e05e8c271858a64ed14b926e (diff) | |
download | rails-03cd88a07221a1511c9d06fe4173052bb5554d0b.tar.gz rails-03cd88a07221a1511c9d06fe4173052bb5554d0b.tar.bz2 rails-03cd88a07221a1511c9d06fe4173052bb5554d0b.zip |
Fix AS::Duration#duplicable? on 1.8
Diffstat (limited to 'activesupport/lib/active_support/duration.rb')
-rw-r--r-- | activesupport/lib/active_support/duration.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/duration.rb b/activesupport/lib/active_support/duration.rb index 00c67a470d..89b0923882 100644 --- a/activesupport/lib/active_support/duration.rb +++ b/activesupport/lib/active_support/duration.rb @@ -10,6 +10,7 @@ module ActiveSupport # 1.month.ago # equivalent to Time.now.advance(:months => -1) class Duration < BasicObject attr_accessor :value, :parts + delegate :duplicable?, :to => :value # required when using ActiveSupport's BasicObject on 1.8 def initialize(value, parts) #:nodoc: @value, @parts = value, parts |