José Valim
312f433241
Clear DescendantsTracker on each request.
2010-06-19 17:51:44 +02:00
José Valim
033e0a041f
ActiveRecord and ActionPack now use the new descendants implementation.
2010-06-19 17:15:21 +02:00
Aaron Patterson
bf6661c5d7
setting the timezone in postgres to whatever ruby thinks the timezone is [ #4895 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-17 16:49:21 -07:00
Xavier Noria
12eef93e89
documents how to run an individual test in AR
2010-06-17 17:41:39 +02:00
Xavier Noria
2aa4e5f3fa
pdoc tasks publishe APIs in api.rubyonrails.org
2010-06-16 22:39:13 +02:00
Xavier Noria
01f3f0dbae
use RDoc 2.2 to generate the documentation of individual components
2010-06-16 22:30:06 +02:00
Aaron Patterson
8e56085817
use assert_in_delta() for floating point comparisons in tests [ #4871 state:resolved]
...
Signed-off-by: Carl Lerche <carllerche@mac.com >
2010-06-16 10:09:59 -07:00
Xavier Noria
5cd3c2a855
Merge remote branch 'rails/master'
2010-06-14 23:24:41 +02:00
Xavier Noria
f17159b029
edit pass: the names of Rails components have a space, ie, "Active Record", not "ActiveRecord"
2010-06-14 23:22:04 +02:00
Xavier Noria
4a8c8804ff
refactors AR::Base#reset_table_name
2010-06-14 18:36:04 +02:00
Thiago Pradi
8d82bef58a
Documentation for #quoted_table_name method
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-06-14 17:32:45 +02:00
wycats
a087bc85fd
Revert "Revert "Validators should at model level and not at AR:Base level [ Closes #4804 ]""
...
This reverts commit d675493065 .
2010-06-12 18:48:27 -07:00
wycats
d675493065
Revert "Validators should at model level and not at AR:Base level [ Closes #4804 ]"
...
This reverts commit e11bb95d56 .
2010-06-12 18:47:37 -07:00
José Valim
b308a6030e
Use load_paths on AR benchmarks so it uses the bundler setup instead of system gems.
2010-06-12 10:07:35 +02:00
Pratik Naik
9a23a03505
Remove an unused method
2010-06-12 11:54:52 +05:30
José Valim
85cc1fa657
Revert "Don't overwrite unsaved updates when loading an association but preserve the order of the loaded records. [ #4642 state:open]"
...
This commit introduced a regression described in ticket [#4830 ].
This reverts commit 0265c708b9 .
2010-06-11 17:05:54 +02:00
José Valim
b67ec8ba20
class_attribute is not a direct replacement of class_inheritable_*.
...
If you are setting a hash or an array in class_attribute or you need
to freeze it, to ensure people won't modify it in place or you need
to dup it on inheritance.
2010-06-10 19:39:09 +02:00
Neeraj Singh
e11bb95d56
Validators should at model level and not at AR:Base level [ Closes #4804 ]
...
[#4804 state:resolved]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-10 11:50:42 -04:00
David Heinemeier Hansson
983815632c
Cut down even further on rake -T noise
2010-06-09 17:14:53 -04:00
David Heinemeier Hansson
fa15111d30
Silence even more noisy rake task docs
2010-06-09 16:39:01 -04:00
James Le Cuirot
0265c708b9
Don't overwrite unsaved updates when loading an association but preserve the order of the loaded records. [ #4642 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2010-06-09 18:17:52 +05:30
Santiago Pastorino
6898c167c3
Make sure about which is the first element of the query, fixes a postgresql 8.4 failing test
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-09 10:06:41 +02:00
Santiago Pastorino
cfacae1a7d
SQLite2Adapter doesn't exist
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-09 10:06:24 +02:00
Brian Durand
2500e6af66
Make logic for after_commit and after_rollback :on option work like it does for validation callbacks.
...
[#2991 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-08 17:05:29 -04:00
Jeremy Kemper
b070739240
Revert "Temporarily revert "Update after_commit and after_rollback docs and tests to use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction.""
...
This reverts commit 1b2941cba1 .
[#2991 ]
2010-06-08 17:05:29 -04:00
Jeremy Kemper
87cc3d5569
Clarify Fixture#key_ and value_list
2010-06-08 17:05:29 -04:00
Xavier Noria
f1c0bcfbb6
Merge remote branch 'docrails/master'
2010-06-08 22:39:30 +02:00
Emilio Tagua
4b4a548a60
Avoid PostgreSQL and MySQL tests warnings.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 22:36:19 +02:00
Andrew Bloomgarden
0e9b9d5985
Fix ActiveRecord::Base.compute_type swallowing NoMethodError. [ #4751 state:resolved]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2010-06-08 15:34:47 -04:00
Xavier Noria
751f79a033
Merge remote branch 'rails/master'
2010-06-08 21:23:29 +02:00
Emilio Tagua
ab2877cbe8
Add parentheses to avoid warnings when running AR tests.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 21:16:19 +02:00
Emilio Tagua
d103c73d95
Bump Arel to 0.4.0
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 20:59:14 +02:00
Jeremy Kemper
1b2941cba1
Temporarily revert "Update after_commit and after_rollback docs and tests to use new style API with an :on options instead of on_* suffix." and "Add after_commit and after_rollback callbacks to ActiveRecord that are called after transactions either commit or rollback on all records saved or destroyed in the transaction."
...
This reverts commits d2a49e4b1f and da840d13da .
[#2991 ]
Conflicts:
activerecord/CHANGELOG
activerecord/lib/active_record/transactions.rb
activerecord/test/cases/transaction_callbacks_test.rb
2010-06-08 14:56:08 -04:00
David Heinemeier Hansson
32d4330b81
Get ready for beta 4
2010-06-08 14:47:02 -04:00
Aaron Patterson
eb69721c9b
forcing encoding on 1.9 when dealing with "binary" columns [ #4612 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-06-08 14:33:28 -04:00
Ernie Miller
a4eaa1fd39
Fix multiple self-referencing eager loads failing to join multiple times
...
[#4679 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-08 01:02:19 -04:00
wycats
b97a3f33a3
Merge remote branch 'rsim/oracle_enhanced_rails3'
2010-06-07 23:03:59 -04:00
Santiago Pastorino and José Ignacio Costa
100f8b2dfc
update docs before_validation_on_create => before_validation(:on => :create)
2010-06-07 22:21:28 -03:00
Santiago Pastorino
94ed39d146
This test shouldn't rely on the order of the data returned by select
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-07 20:06:31 -04:00
José Valim
a04060fb6f
Really make include_root_in_json default to true [ #3770 state:resolved]
2010-06-08 01:02:45 +02:00
José Valim
634c9310e3
Make the logic for nested_records_changed_for_autosave? simpler.
...
[#4648 state:resolved]
2010-06-07 11:01:10 +02:00
Carlos Antonio da Silva
7eedc3f397
Fixing test class names and refactor line in autosave association
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-07 10:45:47 +02:00
Tom Meier
3f1cdb85b8
Require active support/string/conversions so constantize can be used in associations.rb
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-07 10:29:26 +02:00
Jeremy Kemper
a5f3f3ef7a
MySQL: require 2.7 or later so we can rely on result.each_hash
2010-06-05 14:59:51 -07:00
wycats
a260e02fd3
Whoops. _run_*_callbacks is private
2010-06-04 20:11:05 -07:00
wycats
a87b627297
Use faster form of running callbacks
2010-06-04 20:11:05 -07:00
Xavier Noria
67a43554f1
removes Array#random_element and backports Array#sample from Ruby 1.9, thanks to Marc-Andre Lafortune
2010-06-05 01:15:17 +02:00
Raimonds Simanovskis
acef8feafa
compare sorted arrays in relations_test
...
Oracle does not guarantee that SELECT will return records ordered by primary key
2010-06-04 22:58:55 +03:00
Raimonds Simanovskis
c51fa6bdfc
ignore raw_sql_ table alias that is used by Oracle adapter
2010-06-04 22:44:04 +03:00
Raimonds Simanovskis
b0fdd290f4
fix test_belongs_to_with_primary_key_joins_on_correct_column test on Oracle
2010-06-04 22:44:04 +03:00