Rick Olson
|
58c435a3ca
|
Support eager includes when going through a polymorphic has_many association. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-05 17:11:21 +00:00 |
|
Rick Olson
|
a9fb1544b0
|
Added support for eagerly including polymorphic has_one associations. (closes #4525) [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-05 17:01:56 +00:00 |
|
Rick Olson
|
4d232025b7
|
Added descriptive error messages for invalid has_many :through associations: going through :has_one or :has_and_belongs_to_many [Rick]
Added support for going through a polymorphic has_many association: (closes #4401) [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-05 15:36:02 +00:00 |
|
Tobias Lütke
|
5821096a52
|
Multiple fixes and optimizations in PostgreSQL adapter, allowing ruby-postgres gem to work properly. Closes #4461
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-04 18:53:40 +00:00 |
|
Florian Weber
|
bb4c6797bf
|
Fixed that AssociationCollection#delete_all should work even if the records of the association are not loaded yet. [Florian Weber]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4144 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-03 22:37:56 +00:00 |
|
Rick Olson
|
db7fadd730
|
Changed those private ActiveRecord methods to take optional third argument :auto instead of nil for performance optimizations. (closes #4456) [Stefan]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4141 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-03 16:09:47 +00:00 |
|
Rick Olson
|
a3f20132db
|
Private ActiveRecord methods add_limit, add_joins, and add_conditions take an OPTIONAL third argument 'scope' (closes #4456) [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-01 23:15:35 +00:00 |
|
David Heinemeier Hansson
|
12c5287e30
|
Doc fix (closes #4515)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-01 20:10:42 +00:00 |
|
David Heinemeier Hansson
|
53aa8da1a7
|
Fixed that records returned from has_and_belongs_to_many associations with additional attributes should be marked as read only (fixes #4512) [DHH] DEPRECATED: Using additional attributes on has_and_belongs_to_many associations. Instead upgrade your association to be a real join model [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4123 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-04-01 20:03:10 +00:00 |
|
Marcel Molina
|
3f049b0b6b
|
Do not implicitly mark recordss of has_many :through as readonly but do mark habtm records as readonly (eventually only on join tables without rich attributes).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-30 22:27:32 +00:00 |
|
David Heinemeier Hansson
|
0703149e71
|
Fixed broken OCIAdapter (closes #4457) [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-30 03:38:15 +00:00 |
|
David Heinemeier Hansson
|
479b4fb5d9
|
Made ready for release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-28 05:03:05 +00:00 |
|
Marcel Molina
|
4e3c101bcb
|
Add 1.0 marker to edge rails changelongs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4085 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-28 04:05:08 +00:00 |
|
Nicholas Seckar
|
b55fc9e85a
|
Replace 'rescue Object' with a finer grained rescue. Closes #4431
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4076 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-28 01:48:59 +00:00 |
|
David Heinemeier Hansson
|
31199a9e4a
|
Update description
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-28 01:11:09 +00:00 |
|
Rick Olson
|
ed6c3c17f7
|
Fixed eager loading so that an aliased table cannot clash with a has_and_belongs_to_many join table [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4066 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-27 08:09:36 +00:00 |
|
Michael Koziarski
|
445cb5c08d
|
Add support for :include to with_scope [andrew@redlinesoftware.com]
Remove overrated warning from adapter_test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-27 06:19:31 +00:00 |
|
David Heinemeier Hansson
|
1886de8612
|
Support the use of public synonyms with the Oracle adapter; required ruby-oci8 v0.1.14 (closes #4390) [schoenm@earthlink.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-26 21:43:48 +00:00 |
|
Rick Olson
|
a5991d8491
|
Change periods (.) in table aliases to _'s. Closes #4251 [jeff@ministrycentered.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-26 04:13:25 +00:00 |
|
Rick Olson
|
56af14d5aa
|
Changed has_and_belongs_to_many join to INNER JOIN for Mysql 3.23.x. Closes #4348 [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4038 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-26 04:08:50 +00:00 |
|
Rick Olson
|
6636eb16c5
|
Fixed issue that kept :select options from being scoped [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-26 00:36:55 +00:00 |
|
David Heinemeier Hansson
|
0a5b8328b9
|
The Ruby path should be a string (closes #4361) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-25 23:32:08 +00:00 |
|
David Heinemeier Hansson
|
75de3cbb13
|
Fixed that MySQL enums should always be returned as strings (closes #3501) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-25 21:42:27 +00:00 |
|
Rick Olson
|
38bae0a969
|
Change has_many :through to use the :source option to specify the source association. :class_name is now ignored. [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-24 14:46:17 +00:00 |
|
David Heinemeier Hansson
|
2d24bed3a0
|
Fixed DB2 adapter so nullable columns will be determines correctly now and quotes from column default values will be removed (closes #4350) [contact@maik-schmidt.de]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-22 19:30:02 +00:00 |
|
Rick Olson
|
6fbf408238
|
Allow overriding of find parameters in scoped has_many :through calls [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-21 16:33:22 +00:00 |
|
David Heinemeier Hansson
|
df62dea1ff
|
Fixed that schema changes while the database was open would break any connections to a SQLite database (now we reconnect if that error is throw) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3997 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-20 06:05:16 +00:00 |
|
Rick Olson
|
9a72cd22cf
|
Don't classify the has_one class when eager loading, it is already singular. Add tests. (closes #4117) [jonathan@bluewire.net.nz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3983 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-19 19:32:07 +00:00 |
|
Rick Olson
|
ea25e246e0
|
Quit ignoring default :include options in has_many :through calls [Mark James]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-19 16:13:52 +00:00 |
|
Rick Olson
|
fcd4c9529c
|
Allow has_many :through associations to find the source association by setting a custom class (closes #4307) [jonathan@bluewire.net.nz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-19 07:14:48 +00:00 |
|
Rick Olson
|
9038303af0
|
forgot to save changelog... doh
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-19 03:08:04 +00:00 |
|
Rick Olson
|
0925c6b6a0
|
Allow has_many :through to work on has_many associations (closes #3864) [sco@scottraymond.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3964 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-19 02:01:40 +00:00 |
|
Rick Olson
|
eb1ae042bd
|
add ticket # to changeset
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3962 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-19 00:55:56 +00:00 |
|
Rick Olson
|
57af961a80
|
Raise error when trying to select many polymorphic objects with has_many :through or :include (closes #4226) [josh@hasmanythrough.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3961 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-19 00:53:24 +00:00 |
|
Rick Olson
|
9c9069a675
|
Fixed has_many :through to include :conditions set on the :through association. closes #4020 [jonathan@bluewire.net.nz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 23:14:31 +00:00 |
|
Rick Olson
|
fbd1e01bd6
|
Fix that has_many :through honors the foreign key set by the belongs_to association in the join model (closes #4259) [andylien@gmail.com / Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3954 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 22:38:49 +00:00 |
|
David Heinemeier Hansson
|
9db8f3e57a
|
SQL Server adapter gets some love (closes #4298) [rtomayko@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3949 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 21:27:40 +00:00 |
|
David Heinemeier Hansson
|
6c67905c1c
|
Fixed that eager loading from belongs_to would cause the association to be double-singularized (closes #4117) [jonathan@bluewire.net.nz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3940 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 20:20:30 +00:00 |
|
David Heinemeier Hansson
|
416385a09d
|
Added OpenBase database adapter that builds on top of the http://www.spice-of-life.net/ruby-openbase/ driver. All functionality except LIMIT/OFFSET is supported (closes #3528) [derrickspell@cdmplus.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 16:50:25 +00:00 |
|
Rick Olson
|
ddce0ae525
|
remove space
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3922 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 07:36:50 +00:00 |
|
Rick Olson
|
229c0f4367
|
Rework table aliasing to account for truncated table aliases. Add smarter table aliasing when doing eager loading of STI associations. This allows you to use the association name in the order/where clause. [Jonathan Viney / Rick Olson] closes #4108
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 07:31:01 +00:00 |
|
Rick Olson
|
263479b5a3
|
Add AbstractAdapter#table_alias_for to create table aliases according to the rules of the current adapter. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3916 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 05:43:35 +00:00 |
|
Michael Koziarski
|
93f8bd15a1
|
Provide access to the underlying database connection with Adapter#raw_connection, allows the use of db-specific methods such as postgresql's lo_* . Closes #2090
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 05:03:34 +00:00 |
|
Michael Koziarski
|
7fdab4446a
|
Remove broken attempts at handling columns with a a default of 'now()' in the postgresql adapter. Closes #2257
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 04:38:49 +00:00 |
|
David Heinemeier Hansson
|
0555fc905c
|
Added connection#current_database that'll return of the current database (only works in MySQL, SQL Server, and Oracle so far -- please help implement for the rest of the adapters) (closes #3663) [Tom ward]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 03:54:04 +00:00 |
|
David Heinemeier Hansson
|
df97ed5e4c
|
Nicer error message on has_many :through when :through reflection can not be found (closes #4042) [court3nay@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 03:39:18 +00:00 |
|
David Heinemeier Hansson
|
9bd7db4a98
|
Fixed that Migration#execute would have the table name prefix appended to its query (closes #4110) [mark.imbriaco@pobox.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3909 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 03:32:38 +00:00 |
|
David Heinemeier Hansson
|
ea617708c2
|
Added migrations support to the Sybase adapter (closes #4293) [John R. Sheets]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-18 03:02:32 +00:00 |
|
Jamis Buck
|
d712310518
|
Make all tinyint(1) variants act like boolean in mysql (tinyint(1) unsigned, etc.)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-17 22:03:26 +00:00 |
|
Rick Olson
|
a3502c419e
|
Use association's :conditions when eager loading. [jeremyevans0@gmail.com] closes #4144
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-03-16 06:17:54 +00:00 |
|