David Heinemeier Hansson
|
6fd1a4d502
|
Fixed that habtm associations should be able to set :select as part of their definition and have that honored [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-05 21:37:51 +00:00 |
|
David Heinemeier Hansson
|
2af36bbbd4
|
Fix typos (closes #10378)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-05 18:54:41 +00:00 |
|
David Heinemeier Hansson
|
37b1d33ba3
|
Try again
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-05 02:50:18 +00:00 |
|
Jeremy Kemper
|
e7dab3b166
|
MySQL: we can't distinguish a fake 0 default in 4.x
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-05 02:46:28 +00:00 |
|
David Heinemeier Hansson
|
a5fded3e88
|
Fix that options[:from] table names should never be quoted [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8270 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-05 02:30:30 +00:00 |
|
David Heinemeier Hansson
|
e6f54290af
|
Added ActiveRecord::Base#becomes to turn a record into one of another class (mostly relevant for STIs) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8259 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-03 02:01:21 +00:00 |
|
David Heinemeier Hansson
|
c4cb2dd014
|
Fixed that to_xml should not automatically pass :procs to associations included with :include (closes #10162) [chuyeow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-12-03 01:47:21 +00:00 |
|
Michael Koziarski
|
e302759451
|
Make reset return nil when using a dangling belongs_to association. Current behaviour is to return false which can be confusing. Closes #10293 [fcheung]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8236 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-29 02:19:10 +00:00 |
|
Jeremy Kemper
|
3a3e7efee9
|
attr_protected and _accessible use sets of strings instead of arrays of symbols internally. Closes #10300.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-28 20:13:17 +00:00 |
|
Jeremy Kemper
|
a33007d31a
|
attr_readonly uses a set of strings instead of an array of symbols internally. References #10300.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-28 20:12:49 +00:00 |
|
Jeremy Kemper
|
c7e3969189
|
Foxy fixtures: support single-table inheritance. Closes #10234.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-26 22:46:11 +00:00 |
|
Jeremy Kemper
|
8b3f83105c
|
Foxy fixtures: allow mixed usage to make migration easier and more attractive. Closes #10004.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8218 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-26 22:45:43 +00:00 |
|
David Heinemeier Hansson
|
18c663eb12
|
Allow validates_acceptance_of to use a real attribute instead of only virtual (so you can record that the acceptance occured) (closes #7457) [ambethia]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-25 22:34:46 +00:00 |
|
David Heinemeier Hansson
|
f4b5ca1ff0
|
Fixed that create table with :id => false and fixtures don't play nice together (closes #10154) [jbarnette]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8205 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-25 22:08:38 +00:00 |
|
Geoff Buesing
|
becdb49186
|
Honor Ruby's default calendar reform setting when creating DateTime objects via ActiveRecord's Time -> DateTime overflow, Time#time_with_datetime_fallback, Time#to_datetime, Date#to_datetime and String#to_datetime. Closes #10201
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-24 04:59:21 +00:00 |
|
Jeremy Kemper
|
9afbf875eb
|
Add example.log for binary escaping test. References #10176.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8186 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-22 01:30:22 +00:00 |
|
Jeremy Kemper
|
dd27c4e5fb
|
PostgreSQL: correct binary escaping. References #8049, closes #10176 [jbasdf, tmacedo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-22 01:29:19 +00:00 |
|
Jeremy Kemper
|
440f2890af
|
Dynamic finders on association collections respect association :limit. Closes #10227 [Jack Danger Canty]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-21 07:32:44 +00:00 |
|
Michael Koziarski
|
7d459203ee
|
Make Dynamic Finders on Association Collections Respect Association :order [patrick.t.joyce, technoweenie]. Closes #10211
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-21 01:51:57 +00:00 |
|
Jeremy Kemper
|
8ed83b9b1e
|
validates_inclusion_of and validates_exclusion_of allow formatted :message strings. Closes #8132 [devrieda, Mike Naberezny]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8172 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-20 22:01:04 +00:00 |
|
Michael Koziarski
|
c95f066bf5
|
Add 'foxy' support for fixtures of polymorphic associations. Closes #10183 [jbarnette, David Lowenfels]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-20 21:53:22 +00:00 |
|
Jeremy Kemper
|
473202df83
|
attr_readonly behaves well with optimistic locking. Closes #10188.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-16 20:31:24 +00:00 |
|
Jeremy Kemper
|
990a3f3a83
|
Use rexml for some tests rather than string include? checks to account for unordered attributes. Closes #10164 [Catfish]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8142 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-14 18:59:05 +00:00 |
|
Jeremy Kemper
|
ea256eaa7f
|
Base#to_xml supports the nil="true" attribute like Hash#to_xml. Closes #8268.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8138 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-14 10:33:25 +00:00 |
|
Rick Olson
|
3104291322
|
Fix HasManyThrough Association so it uses :conditions on the HasMany Association. Closes #9729 [danger]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8128 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-11 01:03:43 +00:00 |
|
Michael Koziarski
|
79823e0b2f
|
Ensure that column names are quoted. Closes #10134 [wesley.moxam]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-10 21:33:13 +00:00 |
|
David Heinemeier Hansson
|
b318134c99
|
Kill the whiny_protected_attributes setting and kill the exception raised. Instead, just log the mass-assignment misalignment as a debug warning (closes #9966)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-09 19:57:24 +00:00 |
|
David Heinemeier Hansson
|
37adea6ff1
|
Address shortcomings of changeset [8054] [protocool]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-11-07 15:07:39 +00:00 |
|
Michael Koziarski
|
8f74527282
|
Escape table names during calculation queries. [wesley.moxam, Koz] Closes #4593
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8061 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-31 05:58:09 +00:00 |
|
Michael Koziarski
|
3c9cd19786
|
Make fixtures work with the new test subclasses. [tarmo, Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-31 05:43:52 +00:00 |
|
Jeremy Kemper
|
bef071dd0b
|
Introduce finder :joins with associations. Same :include syntax but with inner rather than outer joins. Closes #10012.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8054 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-29 21:39:52 +00:00 |
|
Rick Olson
|
c708346688
|
Change JSON to encode %w(< > &) as 4 digit hex codes to be in compliance with the JSON spec. Closes #9975 [josh, chuyeow, tpope]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-29 00:18:43 +00:00 |
|
Michael Koziarski
|
df0765d8dc
|
Make sure that << works on has_many associations on unsaved records. Closes #9989 [hasmanyjosh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-28 03:39:18 +00:00 |
|
Jeremy Kemper
|
88f951a519
|
Allow association redefinition in subclasses. Closes #9346.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8046 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-27 20:31:09 +00:00 |
|
Jeremy Kemper
|
4b639904d7
|
Fix has_many :through delete with custom foreign keys. Closes #6466.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-27 18:51:32 +00:00 |
|
Jeremy Kemper
|
49eafd8c36
|
Foxy fixtures. Adapter#disable_referential_integrity. Closes #9981.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-26 05:56:46 +00:00 |
|
Marcel Molina
|
bf658a906b
|
Allow find on a has_many association defined with :finder_sql to accept id arguments as strings like regular find does. Closes #9916 [krishna]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-26 03:42:28 +00:00 |
|
Michael Koziarski
|
2d208eb3a0
|
Make sure that the Schema Dumper supports non-standard primary keys with MySQL. Closes #9971 [RubyRedRick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-25 06:42:05 +00:00 |
|
Marcel Molina
|
c8b6b4821f
|
Limited eager loading no longer ignores scoped :order. Closes #9561 [danger, josh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-23 18:34:01 +00:00 |
|
Jeremy Kemper
|
7b42a1d0ac
|
Assigning an instance of a foreign class to a composed_of aggregate calls an optional conversion block. Refactor and simplify composed_of implementation. Closes #6322.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-23 17:39:35 +00:00 |
|
Jeremy Kemper
|
c220e558be
|
Assigning nil to a composed_of aggregate also sets its immediate value to nil. Closes #9843.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-23 17:29:42 +00:00 |
|
Jeremy Kemper
|
28729a4829
|
validates_uniqueness_of behaves well with abstract superclasses. References #3833, closes #9886.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8000 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-23 06:18:42 +00:00 |
|
Jeremy Kemper
|
902533e6f0
|
Reinstate test_change_column_nullability for all adapters. Closes #9945 [lawrence]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-22 23:52:04 +00:00 |
|
Jeremy Kemper
|
e829e12e16
|
test_select_rows shouldn't depend on implicit result ordering. Closes #9898 [lawrence]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7995 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-22 23:50:12 +00:00 |
|
Rick Olson
|
7042163d76
|
Ensure that mysql quotes table names with database names correctly. Closes #9911 [crayz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-20 21:17:31 +00:00 |
|
Michael Koziarski
|
17ac677a2d
|
typo in test name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-19 02:51:44 +00:00 |
|
Michael Koziarski
|
3facc8578b
|
Few more tests for Sexy Migrations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-19 02:25:23 +00:00 |
|
Michael Koziarski
|
6ddde027c4
|
Add t.belongs_to and t.references to sexy migrations [arthurgeek]
Test harness for Sexy Migrations. [Koz]
Closes #9775
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-19 02:09:06 +00:00 |
|
Michael Koziarski
|
210f7e29e2
|
Move all Schema creation into schema.rb for Mysql. Closes #9899 [mikong, lawrence]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-19 01:52:50 +00:00 |
|
Jeremy Kemper
|
2fac5d1a8b
|
SQL Server: test for affected row count. References #9558 [lawrence, ryepup]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-18 23:47:59 +00:00 |
|