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:
commit
7c55d6977c
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue