Permalink
Browse files

making select manager public

  • Loading branch information...
tenderlove committed Sep 28, 2010
1 parent 110f8f1 commit f4c12fcc4aa29081f5fe51fc3294ccef55280cc8
Showing with 4 additions and 2 deletions.
  1. +2 −1 lib/arel/table.rb
  2. +1 −0 spec/crud_spec.rb
  3. +1 −1 spec/select_manager_spec.rb
View
@@ -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
@@ -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
@@ -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

0 comments on commit f4c12fc

Please sign in to comment.