Tobias Lütke
13fccff283
modified finder test a tiny bit so that it passes on sqlserver
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 20:50:06 +00:00
Jamis Buck
bcd0968a6f
Update/clean up ActiveRecord documentation (rdoc)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 16:00:16 +00:00
Jeremy Kemper
4db7def575
r3959@asus: jeremy | 2005-10-16 00:09:09 -0700
...
update changelog for #2292
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 04:12:41 +00:00
Jeremy Kemper
cd2b092f0c
r3957@asus: jeremy | 2005-10-16 00:01:55 -0700
...
more sequence tests from #2292
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2640 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 04:05:15 +00:00
Jeremy Kemper
7117fdb8ce
r3616@asus: jeremy | 2005-09-26 23:09:28 -0700
...
Ticket 2292 - Sequences, schemas, and fixtures
r3917@asus: jeremy | 2005-10-15 10:43:24 -0700
fix pk assert
r3918@asus: jeremy | 2005-10-15 10:46:52 -0700
rework query cache connection= override
r3919@asus: jeremy | 2005-10-15 10:47:45 -0700
correct fixtures usage
r3920@asus: jeremy | 2005-10-15 10:53:23 -0700
correct attr assignment
r3921@asus: jeremy | 2005-10-15 12:59:10 -0700
sequences
r3922@asus: jeremy | 2005-10-15 16:36:09 -0700
reset fixtures work with sequences
r3951@asus: jeremy | 2005-10-15 23:23:12 -0700
cut down excess features
r3952@asus: jeremy | 2005-10-15 23:40:30 -0700
don't test for PostgreSQL specifically
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2639 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 03:45:39 +00:00
Jamis Buck
1ea085ec7e
Comment out the memory leak test because it b0rks the testing environment. Update some contact info.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2636 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 02:30:04 +00:00
Nicholas Seckar
67e900c0f4
Fix bad commit. (Bad developer, bad\!)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2633 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-16 01:20:43 +00:00
Nicholas Seckar
9369137676
Add __FILE__ and __LINE__ to eval
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 22:56:36 +00:00
Jamis Buck
bfbf6bba1f
Allow ARStore::Session to indicate that it should not be reloaded in dev mode
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 20:49:04 +00:00
Michael Koziarski
e48055a184
Renaming the deprecated finder test
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 19:52:40 +00:00
Jamis Buck
e7f61eab56
squash the memleak in dev mode finally (fingers crossed, here)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2620 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 18:21:27 +00:00
Sam Stephenson
10714869dc
Change default logging colors to work on both white and black backgrounds.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 15:34:09 +00:00
Jeremy Kemper
00a194d739
Really fix #1896 . YAML class structure changed between 1.8.2 and 1.8.3, breaking the original implementation. Duck-type instead of checking kind_of?
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2603 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 02:49:22 +00:00
Marcel Molina
07b4ea2e4b
Eliminate an obsolete comment.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2601 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 02:13:42 +00:00
Jeremy Kemper
da675e536d
Support ordered YAML fixtures. #1896
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2600 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 02:01:38 +00:00
Tobias Lütke
7086993161
Adds :nullify option to :depends. Closes #2015 (Robby Russell)
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2595 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 00:46:55 +00:00
Jeremy Kemper
64fcb752f2
r3618@sedna: jeremy | 2005-10-14 12:06:03 -0700
...
Branch for :join tainting
r3631@sedna: jeremy | 2005-10-14 20:13:49 -0700
Introduce read-only records, object.readonly\!, object.readonly?, Foo.find(:all, :readonly => true). Foo.find(:all, :joins => '...') also implies :readonly => true.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2594 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 00:19:56 +00:00
Marcel Molina
6a6df5f1e2
Change quote delimiters for sql interpolation to obviate SyntaxErrors. Closes 2215. [leroen@gmail.com]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2593 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-14 23:28:35 +00:00
David Heinemeier Hansson
3202155212
SQL Server needs to quote booleans just like MySQL 1/0
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2586 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-14 16:10:53 +00:00
Jamis Buck
e2fc88eef4
Avoid memleak in dev mode with fastcgi
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-14 15:04:57 +00:00
Marcel Molina
e2da98e212
Back out of [2548].
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2581 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-14 14:01:17 +00:00
Tobias Lütke
5fa8793f02
DRYed up Associations#clear. Closes #1906 [Caleb]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2580 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-14 12:53:39 +00:00
Marcel Molina
ebf618b7fc
Delegate access to a customized primary key to the conventional id method. Closes #2444 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2569 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 20:44:39 +00:00
Jamis Buck
99f3ae0845
Fix errors caused by assigning a has-one or belongs-to property to itself
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2562 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 19:21:45 +00:00
Jeremy Kemper
88c3416ffd
r3581@sedna: jeremy | 2005-10-13 12:20:42 -0700
...
Preserve order of fixture declarations.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2560 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 19:06:15 +00:00
Jeremy Kemper
33eb297edf
r3579@sedna: jeremy | 2005-10-13 12:02:01 -0700
...
decrease need to edit AR mysql connect details by setting socket to mysql_config --socket. if it doesn't work on your platform, well, you would've had to edit it anyway.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2558 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 19:06:04 +00:00
Jeremy Kemper
effe522515
r3577@sedna: jeremy | 2005-10-13 11:55:20 -0700
...
Add in_memory_connection for SQLite3 AR tests. Uses :dbfile => ':memory:' so we don't have to manage db files. It seems a bit quirky, so I'm including it as a separate connection type until we iron out the details.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2556 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 19:05:54 +00:00
Sam Stephenson
24c3599cc0
Support using different database adapters for development and test with ActiveRecord::Base.schema_format = :ruby
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2549 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 04:12:32 +00:00
Marcel Molina
140a5f8f7b
Optimize postgresql selects.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2548 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-13 03:01:33 +00:00
Marcel Molina
af0df03fd3
Update DB2 adapter. Closes #2206 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 23:42:54 +00:00
Marcel Molina
f175547e58
Corrections to SQLServer native data types. Closes #2267 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2545 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 23:13:07 +00:00
Marcel Molina
b840e4ed50
Deprecated ActiveRecord::Base.threaded_connection in favor of ActiveRecord::Base.allow_concurrency.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2542 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 22:37:28 +00:00
Marcel Molina
0e0e774085
Protect id attribute from mass assigment even when the primary key is set to something else. Closes #2438 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2541 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 19:59:13 +00:00
Marcel Molina
f0b2b637ea
Add test coverage for customized primary keys including a failing test for #2444 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-12 19:55:46 +00:00
Marcel Molina
2948910b56
Misc doc fixes (typos/grammar/etc.). Closes #2430 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2533 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-11 03:55:49 +00:00
Marcel Molina
31219f009c
Add test coverage for content_columns. Closes #2432 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-11 03:51:58 +00:00
Marcel Molina
cb8c807085
Fix typo in CHANGELOG.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2531 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-11 03:42:10 +00:00
Marcel Molina
dcc2263b3a
Speed up for unthreaded environments. Closes #2431 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2530 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-11 03:40:11 +00:00
Marcel Molina
31ae8121e4
Optimization for Mysql selects using mysql-ruby extension greater than 2.6.3. Closes #2426 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2529 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-11 03:10:07 +00:00
Marcel Molina
d736568f41
Speed up the setting of table_name. Closes #2428 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2520 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 18:59:56 +00:00
Jamis Buck
08fbdc1d43
move lib/version.rb to lib/active_record/version.rb
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2513 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 14:28:41 +00:00
Marcel Molina
eb2fbf05c6
Optimize instantiation of STI subclass records. In partial fullfilment of #1236 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2511 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 22:26:54 +00:00
Marcel Molina
f4d1af3085
Fix typo of 'constrains' to 'contraints'. Closes #2069 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 22:08:16 +00:00
Marcel Molina
89733eaecf
Optimization refactoring for add_limit_offset!. In partial fullfilment of #1236 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2509 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 21:42:40 +00:00
Marcel Molina
68a322005d
Add versioning convention from SwitchTower to all Rails components. Add --version, -v option to the 'rails' command. Closes #1840 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2508 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 21:15:45 +00:00
Marcel Molina
c8e364a93f
Add ability to get all siblings, including the current child, with acts_as_tree. Recloses #2140 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 18:51:30 +00:00
Marcel Molina
64cd4e4170
PostgreSQL returns the path type wrapped in quotes.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 01:22:47 +00:00
Marcel Molina
e30699f660
Add geometric type for postgresql adapter. Closes #2233 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2498 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 00:52:25 +00:00
Marcel Molina
80cd2f6645
Move require_library_or_gem out of AR's abstract_adapter and into ActiveSupport. closes #1992
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2490 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-08 07:48:37 +00:00
Jeremy Kemper
60a60f9798
Don't tell me about defined reader methods, even at debug level.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2489 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-07 18:22:40 +00:00