1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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