1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

making select manager public

This commit is contained in:
Aaron Patterson 2010-09-28 16:46:06 -07:00
parent 110f8f145c
commit f4c12fcc4a
3 changed files with 4 additions and 2 deletions

View file

@ -97,11 +97,12 @@ module Arel
columns.find { |column| column.name == name }
end
private
def select_manager
SelectManager.new(@engine, self)
end
private
def attributes_for columns
return nil unless columns

View file

@ -32,6 +32,7 @@ module Arel
it 'should call insert on the connection' do
table = Table.new :users
fc = FakeCrudder.new
fc.from table
fc.insert [[table[:id], 'foo']]
fc.engine.calls.find { |method, _|
method == :insert

View file

@ -27,7 +27,7 @@ module Arel
def quote_column_name thing; @engine.connection.quote_column_name thing end
def quote thing, column; @engine.connection.quote thing, column end
def execute sql, name = nil
def execute sql, name = nil, *args
@executed << sql
end
alias :update :execute