aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/arel/visitors/bind_substitute.rb2
-rw-r--r--test/collectors/test_bind_collector.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/visitors/bind_substitute.rb b/lib/arel/visitors/bind_substitute.rb
index 0503a9c986..ce0fb5c924 100644
--- a/lib/arel/visitors/bind_substitute.rb
+++ b/lib/arel/visitors/bind_substitute.rb
@@ -1,7 +1,7 @@
module Arel
module Visitors
class BindSubstitute
- def initialize delegte
+ def initialize delegate
@delegate = delegate
end
end
diff --git a/test/collectors/test_bind_collector.rb b/test/collectors/test_bind_collector.rb
index 036d8f05fe..60532f061c 100644
--- a/test/collectors/test_bind_collector.rb
+++ b/test/collectors/test_bind_collector.rb
@@ -49,7 +49,7 @@ module Arel
offsets = values.map.with_index { |v,i|
[v,i]
- }.find_all { |(v,i)| Nodes::BindParam === v }.map(&:last)
+ }.find_all { |(v,_)| Nodes::BindParam === v }.map(&:last)
list = collector.substitute_binds ["hello", "world"]
assert_equal "hello", list[offsets[0]]