Rick Olson
|
4965a754d5
|
Catch FixtureClassNotFound when using instantiated fixtures on a fixture that has no ActiveRecord model [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3866 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-14 15:15:06 +00:00 |
|
Rick Olson
|
796a43dead
|
Allow ordering of calculated results and/or grouped fields in calculations [solo@gatelys.com] closes #4228
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3865 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-14 14:59:14 +00:00 |
|
Jeremy Kemper
|
25fb2db409
|
Dynamically set allow_concurrency. Closes #4044.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-13 17:28:55 +00:00 |
|
David Heinemeier Hansson
|
51d6bc2807
|
Passing comment
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3835 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-10 17:28:21 +00:00 |
|
David Heinemeier Hansson
|
3442e0c671
|
Added options to control the :only/:except for included associations on Base#to_xml [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3832 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-10 03:50:00 +00:00 |
|
David Heinemeier Hansson
|
db37c0c95f
|
Added association inclusion in to_xml [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3831 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-10 00:25:29 +00:00 |
|
David Heinemeier Hansson
|
d872281975
|
Fixed to_xml across the board to use nice indention, better skip_attributes workings, no type on strings, and cleaned tests [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-09 21:12:28 +00:00 |
|
Jamis Buck
|
966c276d60
|
Fix counter cache setting in belongs-to proxy
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-09 20:55:14 +00:00 |
|
Jamis Buck
|
532f9d484c
|
Add suppress_messages to migrations, to temporarily turn off verbose messages
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-09 18:38:39 +00:00 |
|
Jamis Buck
|
87898badba
|
Allow counter_cache to accept a column name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3825 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-09 17:23:57 +00:00 |
|
Michael Koziarski
|
57565b3506
|
format fix for locking [Michael Koziarski]
Add documentation for :dependent on associations. [robby@planetargon.com] Closes #4151
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-09 08:40:34 +00:00 |
|
Rick Olson
|
2383a60443
|
Allow set_fixture_class to take Classes instead of strings for a class in a module. Raise FixtureClassNotFound if a fixture can't load. [Rick Olson] closes #4095
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3804 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-06 23:03:35 +00:00 |
|
Rick Olson
|
7c4b7affdb
|
Fix quoting of inheritance column for STI eager loading #4098 [Jonathan Viney <jonathan@bluewire.net.nz>]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-06 16:00:46 +00:00 |
|
Rick Olson
|
c58dff1c9c
|
slight change to eager associations table aliasing: use class_reflection, like 'post_comments' or 'tree_children'
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3788 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-06 04:47:58 +00:00 |
|
David Heinemeier Hansson
|
c450a36f16
|
Doc fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-05 21:37:12 +00:00 |
|
David Heinemeier Hansson
|
ccfcd9fe22
|
Doc fixes
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3780 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-05 20:00:04 +00:00 |
|
David Heinemeier Hansson
|
4f00c70580
|
Fixed eager loading problems with single-table inheritance [Rick Olson] Added smarter table aliasing for eager associations for multiple self joins [Rick Olson] (closes #3580)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3776 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-05 18:43:56 +00:00 |
|
David Heinemeier Hansson
|
55854c4195
|
Added cascading eager loading that allows for queries like Author.find(:all, :include=> { :posts=> :comments }), which will fetch all authors, their posts, and the comments belonging to those posts in a single query (using LEFT OUTER JOIN) #3913 [anna@wota.jp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-04 23:33:10 +00:00 |
|
Jamis Buck
|
ff881c7f8b
|
Make counter cache work when replacing an association (closes #3245). Thanks for the patch!
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-04 19:42:41 +00:00 |
|
Jamis Buck
|
c0fb67c0f8
|
Make migrations verbose
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3760 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-04 18:46:51 +00:00 |
|
Jamis Buck
|
964b67dd0e
|
Make counter_cache work with polymorphic belongs_to
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3756 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-04 15:11:17 +00:00 |
|
David Heinemeier Hansson
|
116658e69b
|
Fixed that calling HasOneProxy#build_model repeatedly would cause saving to happen (closes #4058) [anna@wota.jp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3753 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-03 06:25:39 +00:00 |
|
Jeremy Kemper
|
68ff2ebbea
|
fix unreplaced class var
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-02 22:04:38 +00:00 |
|
Jeremy Kemper
|
215852745b
|
Revert allow_concurrency change for better testing. Retrieve_connection in two steps to avoid side-effect bug (yuk).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-02 14:36:06 +00:00 |
|
David Heinemeier Hansson
|
a4c6442612
|
More docs for observers (closes #3996) [Robby Russel]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-02 03:02:51 +00:00 |
|
David Heinemeier Hansson
|
456ddc6f61
|
Doc fix (closes #4014) [thijs@fngtps.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-02 02:53:57 +00:00 |
|
David Heinemeier Hansson
|
f62b8af688
|
Catch requirement of Sybase adapter, if we cant, dont have it
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3737 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-02 01:37:41 +00:00 |
|
David Heinemeier Hansson
|
5ba5dd68da
|
Dont require sybase unless you try to connect
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-02 01:31:29 +00:00 |
|
David Heinemeier Hansson
|
ec4dd572e7
|
Added Sybase database adapter that relies on the Sybase Open Client bindings (see http://raa.ruby-lang.org/project/sybase-ctlib) (closes #3765) [John Sheets]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-02 01:25:50 +00:00 |
|
David Heinemeier Hansson
|
6a3f4c932a
|
Added Sybase database adapter that relies on the Sybase Open Client bindings (see http://raa.ruby-lang.org/project/sybase-ctlib) (closes #3765) [John Sheets]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-02 01:15:41 +00:00 |
|
Jeremy Kemper
|
a434cec2e6
|
(duh :)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-01 22:14:00 +00:00 |
|
Jeremy Kemper
|
d28c0f7405
|
Typo in stale thread removal.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-01 22:09:46 +00:00 |
|
Jeremy Kemper
|
7568f18a2a
|
Clear stale, cached connections left behind by defunct threads. Eliminate duplicate connection cache.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3729 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-01 22:05:41 +00:00 |
|
Jeremy Kemper
|
d8641ca34f
|
CHANGED DEFAULT: set ActiveRecord::Base.allow_concurrency to false. Most AR usage is in single-threaded applications.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-01 22:04:30 +00:00 |
|
David Heinemeier Hansson
|
a8d085adf0
|
Make calculations typecasty! (closes #4016) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-01 16:25:14 +00:00 |
|
David Heinemeier Hansson
|
631181ca18
|
Renamed the "oci" adapter to "oracle", but kept the old name as an alias (closes #4017) [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3718 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-01 16:01:53 +00:00 |
|
David Heinemeier Hansson
|
491554f6dd
|
Make #save return true on success, even if locking is enabled (closes #4015) [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3716 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-01 05:43:50 +00:00 |
|
David Heinemeier Hansson
|
4c7555aef7
|
Fixed that Base.save should always return false if the save didn't succeed, including if it has halted by before_save's (closes #1861, #2477) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-28 20:37:21 +00:00 |
|
Michael Koziarski
|
17ff70ac84
|
Make rake load_fixtures work with the new, flexible, fixtures api. [Rick Olson]. Closes #3995
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-28 20:18:02 +00:00 |
|
Michael Koziarski
|
a117d68f0f
|
Add more documentation for Reflection. [robby@planetargon.com]. Closes #4001
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3705 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-28 20:13:37 +00:00 |
|
Nicholas Seckar
|
1383d1c3b9
|
Change Fixtures.create_fixtures arity to be backwards compatible
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-28 00:40:33 +00:00 |
|
Jeremy Kemper
|
3cfea287ba
|
Speed up class -> connection caching and stale connection verification. Closes #3979.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-27 21:37:30 +00:00 |
|
Nicholas Seckar
|
ada11d6313
|
Add set_fixture_class to allow the use of table name accessors with models which use set_default_name. Closes #3935
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-27 20:29:28 +00:00 |
|
David Heinemeier Hansson
|
018e7f24f0
|
Only load .yml files in sub-directories
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-27 05:26:42 +00:00 |
|
David Heinemeier Hansson
|
91247b6167
|
Added that fixtures to placed in subdirectories of the main fixture files are also loaded (closes #3937) [dblack@wobblini.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-27 05:14:57 +00:00 |
|
David Heinemeier Hansson
|
adccb319e2
|
doc fix (closes #3972) [robby]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3682 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-27 05:10:04 +00:00 |
|
David Heinemeier Hansson
|
8203a2afc1
|
Dont require association classes before theyre supposed to be used (closes #3976) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-27 04:45:36 +00:00 |
|
Jeremy Kemper
|
1a06d324df
|
Define attribute query methods to avoid method_missing calls. Closes #3677.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3679 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-27 00:27:48 +00:00 |
|
David Heinemeier Hansson
|
660952e5b0
|
CHANGED DEFAULT: ActiveRecord::Base.schema_format is now :ruby by default instead of :sql. This means that we'll assume you want to live in the world of db/schema.rb where the grass is green and the girls are pretty. If your schema contains un-dumpable elements, such as constraints or database-specific column types, you just got an invitation to either 1) patch the dumper to include foreign key support, 2) stop being db specific, or 3) just change the default in config/environment.rb to config.active_record.schema_format = :sql -- we even include an example for that on new Rails skeletons now. Brought to you by the federation of opinionated framework builders! [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-27 00:23:49 +00:00 |
|
David Heinemeier Hansson
|
c5ff33cd7b
|
Example for validates_presence_of method (closes #3966) [Robby Russell]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3677 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-02-26 23:58:22 +00:00 |
|