Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

making select manager public

  • Loading branch information...
commit f4c12fcc4aa29081f5fe51fc3294ccef55280cc8 1 parent 110f8f1
@tenderlove tenderlove authored
View
3  lib/arel/table.rb
@@ -97,11 +97,12 @@ def [] name
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
1  spec/crud_spec.rb
@@ -32,6 +32,7 @@ def initialize engine = FakeEngine.new
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
2  spec/select_manager_spec.rb
@@ -27,7 +27,7 @@ def quote_table_name thing; @engine.connection.quote_table_name thing end
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
Please sign in to comment.
Something went wrong with that request. Please try again.