mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unused bind_values
Since https://github.com/rails/rails/commit/213796f, `bind_values` is no longer used from Active Record.
This commit is contained in:
parent
bfb770dbcc
commit
e6b707fe75
2 changed files with 1 additions and 11 deletions
|
@ -7,11 +7,8 @@ module Arel
|
|||
|
||||
attr_reader :ast
|
||||
|
||||
attr_accessor :bind_values
|
||||
|
||||
def initialize
|
||||
@ctx = nil
|
||||
@bind_values = []
|
||||
@ctx = nil
|
||||
end
|
||||
|
||||
def to_dot
|
||||
|
|
|
@ -10,13 +10,6 @@ module Arel
|
|||
assert_equal "SELECT FROM 'foo'", manager.to_sql
|
||||
end
|
||||
|
||||
def test_manager_stores_bind_values
|
||||
manager = Arel::SelectManager.new
|
||||
assert_equal [], manager.bind_values
|
||||
manager.bind_values = [1]
|
||||
assert_equal [1], manager.bind_values
|
||||
end
|
||||
|
||||
describe 'backwards compatibility' do
|
||||
describe 'project' do
|
||||
it 'accepts symbols as sql literals' do
|
||||
|
|
Loading…
Reference in a new issue