1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/arel
Sean Griffin 7508284800 Remove engine from the constructor arguments Arel::Table
It is never used outside of convenience methods which are only used in
tests. In practice, it just made constructing tables more complicated on
the rails side. This is the minimum possible change to remove the
constructor argument, but continue to have the tests passing.

I'm not sure if we have a reason to keep `project` and friends, and the
solution might actually just be to remove the engine from
`SelectManager` and friends. As such I've held off on deleting those
methods.

We need to figure out what to do with `Table#from`. It's old invocation,
which read `table.from(table)` was certainly nonsensical.
2014-11-29 16:08:51 -07:00
..
attributes Move #as to AliasPredication, stop overriding Function's #as. 2011-04-29 11:13:41 -07:00
collectors Add order to BindParams in the ToSql collector 2014-11-17 14:52:38 -08:00
compatibility
nodes Add order to BindParams in the ToSql collector 2014-11-17 14:52:38 -08:00
visitors Remove deprecated method "Table#primary_key" 2014-11-26 15:00:05 -07:00
alias_predication.rb Stop calling to_s on aliases, require them to be strings already. 2011-04-29 14:27:45 -04:00
attributes.rb returning undefined for unknown column types 2010-11-16 08:09:26 -08:00
crud.rb explicitly pass the pk to compile_update 2013-11-16 14:20:07 -08:00
delete_manager.rb refactoring where, fixing subselect 2010-12-07 10:48:47 -08:00
expressions.rb Revert "Revert "Merge pull request #300 from jpcody/master"" 2014-10-31 08:40:28 -06:00
factory_methods.rb build quoted strings 2014-03-24 16:50:34 -07:00
insert_manager.rb Allow INSERT INTO <table> SELECT queries 2014-04-10 13:52:26 -04:00
math.rb Replace MathOperation with InfixOperation to support more operators 2011-03-09 03:03:05 +08:00
nodes.rb Add order to BindParams in the ToSql collector 2014-11-17 14:52:38 -08:00
order_predications.rb Break Ordering into Ascending/Descending nodes, allow reversal 2011-06-15 09:18:26 -04:00
predications.rb Look for Enumerable rather than Array in predicates 2014-11-02 12:00:04 -07:00
select_manager.rb Add SelectManager#distinct_on to set/unset Arel::Nodes::DistinctOn quantifier 2014-08-30 13:58:18 -04:00
table.rb Remove engine from the constructor arguments Arel::Table 2014-11-29 16:08:51 -07:00
tree_manager.rb Modify Visitors::Dot's API to use collectors 2014-06-14 23:33:05 +02:00
update_manager.rb add the casting node to the AST at build time 2014-03-24 16:26:09 -07:00
visitors.rb removing unused join_sql method 2014-04-08 16:27:33 -07:00
window_predications.rb Support ANSI SQL2003 window functions. 2012-02-22 15:25:10 +01:00