David Heinemeier Hansson
|
4e2f7bec6f
|
Added documentation about :limit not working with eager loading
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-19 10:39:12 +00:00 |
|
David Heinemeier Hansson
|
cdf88b7b04
|
Fixed stray comma when using eager loading and ordering together from has_many associations #1143
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-19 05:24:50 +00:00 |
|
David Heinemeier Hansson
|
7d01005514
|
Fixed documentation and prepared for release of 0.12
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1216 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 20:10:11 +00:00 |
|
David Heinemeier Hansson
|
f46486d37e
|
Added Base.save! that attempts to save the record just like Base.save but will raise a InvalidRecord exception instead of returning false if the record is not valid [After much pestering from Dave Thomas]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 19:19:23 +00:00 |
|
David Heinemeier Hansson
|
49d0f0cb66
|
Speeded up eager loading a whole bunch
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1212 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 18:49:34 +00:00 |
|
David Heinemeier Hansson
|
c1611a703c
|
Updated documentation here and there
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1210 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 15:31:20 +00:00 |
|
David Heinemeier Hansson
|
515886a565
|
Added documentation for new Base.find API and eager association loading
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1209 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 14:39:36 +00:00 |
|
David Heinemeier Hansson
|
c35ad2d508
|
Fixed PostgreSQL usage of fixtures with regards to public schemas and table names with dots #962 [gnuman1@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 08:11:15 +00:00 |
|
David Heinemeier Hansson
|
03097d3a60
|
Fixed that fixtures were being deleted in the same order as inserts causing FK errors #890 [andrew.john.peters@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 07:52:58 +00:00 |
|
David Heinemeier Hansson
|
b8c07c0325
|
Move nodoc to the individual methods
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 07:40:27 +00:00 |
|
David Heinemeier Hansson
|
a263612b7e
|
Refactored a bit
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1202 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 07:02:12 +00:00 |
|
David Heinemeier Hansson
|
1a6954af01
|
Changed habtm eager loading to also use joins
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 05:55:20 +00:00 |
|
David Heinemeier Hansson
|
76690111d5
|
Fixes for postgresql testing #1129, #1130, #1131
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-18 05:03:56 +00:00 |
|
David Heinemeier Hansson
|
0591c53efd
|
Made the dynamic finders use the new find API and updated the examples here and there
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 17:16:24 +00:00 |
|
David Heinemeier Hansson
|
7ff635c8eb
|
Fixes a problem with the SQL Adapter which was resulting in IDENTITY_INSERT not being set to ON when it should be #1104 [adelle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 13:59:02 +00:00 |
|
David Heinemeier Hansson
|
d5b67ed8d3
|
Added the option to specify the acceptance string in validates_acceptance_of #1106 [caleb@aei-tech.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 10:04:07 +00:00 |
|
David Heinemeier Hansson
|
339f4956b3
|
Added acts_as_nested_set #1000 [wschenk]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 09:52:12 +00:00 |
|
David Heinemeier Hansson
|
ed46cc3058
|
Added insert_at(position) to acts_as_list #1083 [DeLynnB]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 06:50:17 +00:00 |
|
David Heinemeier Hansson
|
949294e0f7
|
Cleaned up validates_length_of by calling existing validations on the common stuff #1108 [caleb@aei-tech.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 06:34:13 +00:00 |
|
David Heinemeier Hansson
|
5e9dc49744
|
Dont prefix on updates and deletes, only selects
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1177 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 06:32:49 +00:00 |
|
David Heinemeier Hansson
|
0baf344457
|
Made migrations create InnoDB tables per default
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-16 06:38:12 +00:00 |
|
David Heinemeier Hansson
|
9dd8d3d3e4
|
Honor the order in the new finder
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-15 08:32:56 +00:00 |
|
David Heinemeier Hansson
|
75b8ac80d9
|
Dont initialize the association proxy for nil records
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-14 07:49:13 +00:00 |
|
David Heinemeier Hansson
|
cef09015c7
|
Order by is no longer a guarentee
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-14 04:07:26 +00:00 |
|
David Heinemeier Hansson
|
ff1db4de5f
|
Qualify the ids used such that eager loading can avoid ambigious keys
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-13 18:12:59 +00:00 |
|
David Heinemeier Hansson
|
71bdf13b60
|
Removed the default order by id on has_and_belongs_to_many queries as it could kill performance on large sets (you can still specify by hand with :order)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-13 17:51:43 +00:00 |
|
David Heinemeier Hansson
|
ad24c6d756
|
Fixed pagination to work with joins #1034 [scott@sigkill.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-13 05:40:22 +00:00 |
|
David Heinemeier Hansson
|
908e9a17d8
|
Fixed that Base.silence should restore the old logger level when done, not just set it to DEBUG #1084 [yon@milliped.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-13 05:16:52 +00:00 |
|
David Heinemeier Hansson
|
5fe0ecce0a
|
Fixed boolean saving on Oracle #1093 [mparrish@pearware.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-13 04:46:59 +00:00 |
|
David Heinemeier Hansson
|
d5cadfc110
|
Address parsing failed when the "to" (or "cc", or whatever) was an array. It was also too restrictive in the formats of the addresses #1097 [Jamis]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-13 04:44:58 +00:00 |
|
David Heinemeier Hansson
|
3b9e90a4da
|
Moved build_association and create_association for has_one and belongs_to out of deprecation as they work when the association is nil unlike association.build and association.create, which require the association to be already in place #864
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1146 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-12 05:34:10 +00:00 |
|
David Heinemeier Hansson
|
b59619600f
|
No conditions relevant here
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1145 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-11 15:13:43 +00:00 |
|
David Heinemeier Hansson
|
ea803aa4e3
|
Doc changes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1141 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-10 17:47:04 +00:00 |
|
David Heinemeier Hansson
|
a677da209b
|
Added rollbacks of transactions if they're active as the dispatcher is killed gracefully (TERM signal) #1054 [Leon Bredt]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-10 17:34:29 +00:00 |
|
David Heinemeier Hansson
|
057cf4918b
|
Added support for has_and_belongs_to_many associations in eager loading #1064 [Dan Peterson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-10 17:24:56 +00:00 |
|
David Heinemeier Hansson
|
fdd268138a
|
Made eager loading work with inheritance hierarchies #1065 [Ryan Carver]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-10 15:49:49 +00:00 |
|
David Heinemeier Hansson
|
e819da27f4
|
Updated docs #1070
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1128 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-10 15:13:05 +00:00 |
|
David Heinemeier Hansson
|
7ad57c4f02
|
Added quoting of column names for fixtures #997 [jcfischer@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-07 06:54:25 +00:00 |
|
David Heinemeier Hansson
|
8afc284e2c
|
Fixed check_box with postgresql booleans is more work now again #995
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-07 06:44:33 +00:00 |
|
David Heinemeier Hansson
|
7b37c779d8
|
Fixed counter_sql when no records exist in database for PostgreSQL (would give error, not 0) #1039 [Caleb Tennis]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1104 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-07 06:29:31 +00:00 |
|
David Heinemeier Hansson
|
81014da84c
|
Use :foreign_key option if specified on the association
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-05 17:11:49 +00:00 |
|
David Heinemeier Hansson
|
d6901bfe93
|
Dont include multiple versions of the same association object
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1087 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-04 07:20:32 +00:00 |
|
David Heinemeier Hansson
|
9e799e731c
|
Prefix primary key with table name so it works as part of a joined fetch
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-04 04:56:23 +00:00 |
|
David Heinemeier Hansson
|
edcaa2e5f7
|
More eager fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-03 18:21:20 +00:00 |
|
David Heinemeier Hansson
|
f8783abf0c
|
Made eager loading work even more
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-03 17:50:11 +00:00 |
|
David Heinemeier Hansson
|
efb55d1cf5
|
Allow order, conditions, and joins in finds that include associations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1080 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-03 12:06:23 +00:00 |
|
David Heinemeier Hansson
|
4f6c943b05
|
Only include associations when the relevant rows have content
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-03 12:04:57 +00:00 |
|
David Heinemeier Hansson
|
abc895b828
|
Added new Base.find API and deprecated find_all, find_first. Added preliminary support for eager loading of associations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-03 10:52:05 +00:00 |
|
David Heinemeier Hansson
|
7c8d2f28e1
|
Removed broken attempt to DRY module ClassMethod #970
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1069 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-02 09:29:43 +00:00 |
|
David Heinemeier Hansson
|
c788bcb416
|
Automatically extend the class which gets a module included with the ClassMethods module if it exists #970 [Lucas Carlson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1068 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-02 09:14:19 +00:00 |
|