From 03cd88a07221a1511c9d06fe4173052bb5554d0b Mon Sep 17 00:00:00 2001 From: thedarkone Date: Sat, 21 May 2011 15:32:20 +0200 Subject: Fix AS::Duration#duplicable? on 1.8 --- activesupport/lib/active_support/duration.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/lib') 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 -- cgit v1.2.3