Rafael Mendonça França
a7d06943dd
Remove deprecated Arel::SqlLiteral
2014-02-10 19:44:00 -02:00
Ernie Miller
6e638bba59
Add equality to ALL THE THINGS (that matter)
...
People are often trying to use ARel nodes inside ActiveRecord, and when
they do so, lots of things can break, because ActiveRecord relies on
Array#uniq and sometimes hash key equality to handle values that end up
in wheres, havings, etc. By implementing equality for all the nodes, we
should hopefully be able to prevent any nodes (even nodes containing
other nodes) from failing an equality check they should otherwise pass,
and alleviate many of these errors.
Fixes #130
2012-08-18 22:33:25 -04:00
Jon Leighton
a855308204
Add an #table_name method to Table and TableAlias, which always returns the actual table name, not the alias. Then fix ToSql#column_for to use this table name when checking whether the table exists (rather than before, where it was checking whether a table with the alias name exists, which was incorrect).
2011-03-04 06:17:18 +08:00
Aaron Patterson
ed2e23c6b9
fixing create_string_join factory method
2010-12-14 10:22:39 -08:00
Aaron Patterson
9653da3c79
adding a join source node
2010-12-14 09:43:19 -08:00
Aaron Patterson
87c022bc98
removing tests of deprecated methods
2010-12-14 08:47:57 -08:00
Aaron Patterson
79657a3512
creating string join nodes
2010-12-07 14:59:13 -08:00
Aaron Patterson
89194f5976
adding a join factory method on the select manager
2010-12-07 11:44:32 -08:00
Aaron Patterson
40603729cc
attributes do not need a column member
2010-12-03 15:24:30 -08:00
Aaron Patterson
a8521641d5
deprecating the update method in favor of compile_update
2010-12-02 14:31:37 -08:00
Aaron Patterson
baa660f62b
deprecating "insert"
2010-12-02 14:01:08 -08:00
Aaron Patterson
7c9845e770
do not use private methods
2010-11-16 20:53:35 -08:00
Ivan Ukhov
120751d2d4
Fix typos in the description of the test
2010-11-17 12:48:37 +08:00
Ivan Ukhov
56ce36fb77
Write a test for checking the presence of table names in the cache
2010-11-17 12:48:36 +08:00
Aaron Patterson
424e39d688
adding proper columns to our fake table
2010-11-05 14:05:10 -07:00
Aaron Patterson
e42506f9ea
adding default limits when there is an offset for sqlite and mysql [ #5316 state:resolved]
2010-10-20 17:16:18 -07:00
Aaron Patterson
15f2b27c6d
renaming test_helper to helper so that it is not double required
2010-10-18 16:54:50 -07:00
Ryan Davis
a2cee877ec
got rid of retarded check method. down with rspec
2010-10-18 16:36:49 -07:00
Ryan Davis
31f61b822d
Renamed spec_helper to test_helper
2010-10-18 16:34:44 -07:00
Ryan Davis
e1ebe6e949
Fisting arel specs -- still needs tree_manager and cleanup
2010-10-18 15:41:21 -07:00