提交 765a3123 编写于 作者: S Sean Griffin

Remove unused `bind` and `bind!` methods from `Relation`

上级 76661dc6
......@@ -435,15 +435,6 @@ def joins!(*args) # :nodoc:
self
end
def bind(value) # :nodoc:
spawn.bind!(value)
end
def bind!(value) # :nodoc:
self.bind_values += [value]
self
end
# Returns a new relation, which is the result of filtering the current relation
# according to the conditions in the arguments.
#
......
......@@ -39,15 +39,6 @@ def test_do_not_double_quote_string_id_with_array
assert_equal van, Minivan.where(:minivan_id => [van]).to_a.first
end
def test_bind_values
relation = Post.all
assert_equal [], relation.bind_values
relation2 = relation.bind 'foo'
assert_equal %w{ foo }, relation2.bind_values
assert_equal [], relation.bind_values
end
def test_two_scopes_with_includes_should_not_drop_any_include
# heat habtm cache
car = Car.incl_engines.incl_tyres.first
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册