David Heinemeier Hansson
|
2bdaff4a4e
|
Added a second parameter to the build and create method for has_one that controls whether the existing association should be replaced (which means nullifying its foreign key as well). By default this is true, but false can be passed to prevent it.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1392 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-06 21:10:59 +00:00 |
|
Jamis Buck
|
6d9ee4a306
|
Added fixture accessors that can be used when fixture instantiation is disabled, "model_name(:fixture_name)"
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-03 11:49:34 +00:00 |
|
David Heinemeier Hansson
|
a1e9ceebd5
|
Added Errors#add_on_blank which works like Errors#add_on_empty, but uses Object#blank? instead. CHANGED: validates_presence_of now uses Errors#add_on_blank, which will make " " fail the validation where it didnt before #1309. Added that " " is now also blank? (using strip if available)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-21 18:12:36 +00:00 |
|
David Heinemeier Hansson
|
10eb22cdce
|
Added the :if option to all validations that can either use a block or a method pointer to determine whether the validation should be run or not. #1324 [Duane Johnson/jhosteny]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-21 10:57:18 +00:00 |
|
David Heinemeier Hansson
|
47dcc5ffc6
|
Fixed use of construct_finder_sql when using :join #1288 [dwlt@dwlt.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-19 17:23:28 +00:00 |
|
David Heinemeier Hansson
|
190e04645b
|
Fixed that :delete_sql in has_and_belongs_to_many associations couldn't access record properties #1299 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1313 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-19 17:07:56 +00:00 |
|
David Heinemeier Hansson
|
bd79a4eb3b
|
Fixed that clone would break when an aggregate had the same name as one of its attributes #1307 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-19 16:39:50 +00:00 |
|
David Heinemeier Hansson
|
24a9050b6e
|
Changed the callbacks such that observers are notified before the in-object callbacks are triggered. Without this change, it wasn't possible to act on the whole object in something like a before_destroy observer without having the objects own callbacks (like deleting associations) called first.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-02 16:46:30 +00:00 |
|
David Heinemeier Hansson
|
5f77f64e92
|
Added option for passing an array to the find_all version of the dynamic finders and have it evaluated as an IN fragment
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1266 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-02 05:34:27 +00:00 |
|
David Heinemeier Hansson
|
2bf223051e
|
Added compatibility with camelCase column names for dynamic finders #533 [Dee.Zsombor]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1263 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-30 15:49:28 +00:00 |
|
David Heinemeier Hansson
|
eefe4d0ddd
|
Fixed extraneous comma in count() function that made it not work with joins #1156 [jarkko/Dee.Zsombor]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-30 15:45:15 +00:00 |
|
David Heinemeier Hansson
|
9f1b57779f
|
Fixed that validate_length_of lost :on option when :within was specified #1195 [jhosteny@mac.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-30 14:02:03 +00:00 |
|
David Heinemeier Hansson
|
06f1895ac6
|
A few more tests #1199
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-30 13:24:43 +00:00 |
|
David Heinemeier Hansson
|
d8fc381ebc
|
Added validates_exclusion_of as a negative of validates_inclusion_of
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-24 16:25:57 +00:00 |
|
David Heinemeier Hansson
|
6f34400086
|
Fixed order of loading in eager associations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-19 16:32:57 +00:00 |
|
David Heinemeier Hansson
|
7881e4dae0
|
Fixed OCI fixtures [Ryan Carver]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-19 10:58:22 +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
|
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
|
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
|
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
|
44073321a8
|
SqlServer fixtures - CategoriesPosts
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 13:57:25 +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
|
78d8503a94
|
Added acts_as_nested_set #1000 [wschenk]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1186 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 09:59:52 +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
|
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
|
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
|
2daf2c846d
|
Fixed db schema
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1133 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-10 17:29:14 +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
|
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
|
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
|
bd9a81ca2d
|
Moved to new server
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1102 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-07 06:20:54 +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
|
430ca4d04f
|
Added tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-03 11:19:14 +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
|
1ba1779754
|
Added that model.items.delete(child) will delete the child, not just set the foreign key to nil, if the child is dependent on the model #978 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-02 08:52:51 +00:00 |
|
David Heinemeier Hansson
|
f84044a83f
|
decrease reliance on instantiated fixtures #980 [Jeremy Kemper]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1062 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-02 08:36:32 +00:00 |
|
David Heinemeier Hansson
|
52e5d748bc
|
Made sure all MySQL tables are created as InnoDB
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1054 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-02 07:46:41 +00:00 |
|
David Heinemeier Hansson
|
f30b7a31bd
|
Fixed the MS SQL adapter to work with the new limit/offset approach and with binary data (still suffering from 7KB limit, though) #901 [delynnb]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@982 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-23 00:56:13 +00:00 |
|
David Heinemeier Hansson
|
ee8d110068
|
Added adapter independent limit clause as a two-element array with the first being the limit, the second being the offset #795 [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-20 21:56:50 +00:00 |
|
David Heinemeier Hansson
|
ce9a9433b3
|
changes the CREATE TABLE script for the "binaries" table to use the "image" datatype. The script was previously failing to create a table (on SQL Server 2000). #834 [adelle]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@926 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-20 13:55:40 +00:00 |
|
David Heinemeier Hansson
|
b2cfbc4cc9
|
Added with additional settings for working with transactional fixtures and pre-loaded test databases #865 [mindel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-20 13:42:35 +00:00 |
|
David Heinemeier Hansson
|
060b9b16aa
|
Added the possibility of specifying fixtures in multiple calls #816 [kim@tinker.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-17 19:36:44 +00:00 |
|