Merge pull request #4235 from castlerock/remove_ruby_18_BasicObject

ruby 1.8 ActiveSupport BasicObject no longer available
This commit is contained in:
José Valim 2011-12-30 10:59:14 -08:00
commit 7c55d6977c
1 changed files with 0 additions and 1 deletions

View File

@ -10,7 +10,6 @@ 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