aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/extensions
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-02-11 23:09:15 -0800
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-02-11 23:09:15 -0800
commit0d70ce37e510c83d5fc42f88b04314f40d87fe96 (patch)
tree03183df1b69ebb31bd5148bc8a9443647348ff3a /lib/active_relation/extensions
parent82cd330dbac31d79e23cc06273321ecbac2b9077 (diff)
downloadrails-0d70ce37e510c83d5fc42f88b04314f40d87fe96.tar.gz
rails-0d70ce37e510c83d5fc42f88b04314f40d87fe96.tar.bz2
rails-0d70ce37e510c83d5fc42f88b04314f40d87fe96.zip
rename substitute to bind since it 'binds' an object to a new relation.
Diffstat (limited to 'lib/active_relation/extensions')
-rw-r--r--lib/active_relation/extensions/object.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_relation/extensions/object.rb b/lib/active_relation/extensions/object.rb
index 1db4c845be..35ffa9c661 100644
--- a/lib/active_relation/extensions/object.rb
+++ b/lib/active_relation/extensions/object.rb
@@ -3,7 +3,7 @@ class Object
self
end
- def substitute(relation)
+ def bind(relation)
self
end