lib/active_support/duration.rb in activesupport-3.1.0.beta1 vs lib/active_support/duration.rb in activesupport-3.1.0.rc1

- old
+ new

@@ -8,9 +8,10 @@ # Example: # # 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 end