mirror of https://github.com/rails/rails
Merge pull request #4235 from castlerock/remove_ruby_18_BasicObject
ruby 1.8 ActiveSupport BasicObject no longer available
This commit is contained in:
commit
7c55d6977c
|
@ -10,7 +10,6 @@ module ActiveSupport
|
||||||
# 1.month.ago # equivalent to Time.now.advance(:months => -1)
|
# 1.month.ago # equivalent to Time.now.advance(:months => -1)
|
||||||
class Duration < BasicObject
|
class Duration < BasicObject
|
||||||
attr_accessor :value, :parts
|
attr_accessor :value, :parts
|
||||||
delegate :duplicable?, :to => :value # required when using ActiveSupport's BasicObject on 1.8
|
|
||||||
|
|
||||||
def initialize(value, parts) #:nodoc:
|
def initialize(value, parts) #:nodoc:
|
||||||
@value, @parts = value, parts
|
@value, @parts = value, parts
|
||||||
|
|
Loading…
Reference in New Issue