1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Ruby on Rails
Find a file
Tim Harper 0580b31b36 belongs_to polymorphic association assignments update the foreign_id and foreign_type fields regardless of whether the record being assigned is new or not.
fixes the following scenarios:
* I have validates_inclusion_of on the type field for a polymorphic belongs_to association.  I assign a new record to the model's polymorphic relationship of the proper type.  validation fails because the type field has not been updated.

* I replace the value for a ppolymorphic association to a new record of another class.  The type field still says its the previous class, and the id field points to the previous record as well.

[#191 state:closed]
2008-05-31 13:27:25 -07:00
actionmailer Add ActionMailer#reply_to. [#245 state:resolved] 2008-05-29 10:38:00 +01:00
actionpack Require ruby-prof 0.6.1 or later. Use resume/pause to omit extraneous machinery from profile. 2008-05-30 02:39:00 -07:00
activemodel Add rdoc task to activemodel. [#156 state:resolved] 2008-05-16 10:35:09 +01:00
activerecord belongs_to polymorphic association assignments update the foreign_id and foreign_type fields regardless of whether the record being assigned is new or not. 2008-05-31 13:27:25 -07:00
activeresource Merge docrails. 2008-05-25 12:29:00 +01:00
activesupport TimeZone#to_s shows offset as GMT instead of UTC, because GMT will be more familiar to end users (see time zone selects used by Windows OS, google.com and yahoo.com.) Reverts [8370] 2008-05-25 11:56:29 -05:00
railties Ensure script/plugin installs ssh/git plugins. [#277 state:resolved] 2008-05-29 20:21:49 +01:00
.gitignore git ignore rubinius .rbc files 2008-05-30 02:31:39 -07:00
cleanlogs.sh Ignore debug logs and ensure ActiveResource's log is cleaned up. 2008-04-16 13:17:03 -05:00
pushgems.rb No more svn version numbers to rely on, use timestamps instead 2008-05-11 18:21:47 -05:00
Rakefile Toplevel test task uses the same rake it was invoked with 2007-12-18 21:12:45 +00:00
release.rb Removed query cache rescue as it could cause code to be run twice (closes #10408) [DHH] 2007-12-07 13:34:06 +00:00