aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/duration.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-07 01:07:00 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-07 01:07:00 +0000
commit34b576700dff8b14ee959072cf303f577b9fc2cd (patch)
treea006f9ada6aa17bb7249fdea89626af53c9b4526 /activesupport/lib/active_support/duration.rb
parent1f5c4365a7429d7f5de0f515b89761434a159d99 (diff)
downloadrails-34b576700dff8b14ee959072cf303f577b9fc2cd.tar.gz
rails-34b576700dff8b14ee959072cf303f577b9fc2cd.tar.bz2
rails-34b576700dff8b14ee959072cf303f577b9fc2cd.zip
Introduce BasicObject as Builder::BlankSlate for Ruby 1.9 forward compatibility.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/duration.rb')
-rw-r--r--activesupport/lib/active_support/duration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/duration.rb b/activesupport/lib/active_support/duration.rb
index 0d3016a690..fd9b505c2f 100644
--- a/activesupport/lib/active_support/duration.rb
+++ b/activesupport/lib/active_support/duration.rb
@@ -4,7 +4,7 @@ module ActiveSupport
# such as in this example:
#
# 1.month.ago # equivalent to Time.now.advance(:months => -1)
- class Duration < Builder::BlankSlate
+ class Duration < BasicObject
attr_accessor :value, :parts
def initialize(value, parts) #:nodoc:
@@ -83,4 +83,4 @@ module ActiveSupport
value.send(method, *args)
end
end
-end \ No newline at end of file
+end