This project is archived and is in readonly mode.
Changeset [f125a34501e21b1e0da2b80d149df7a739482804] by Eloy Duran
Revision f125a34501e21b1e0da2b80d149df7a739482804,
committed by Eloy Duran
· November 6th, 2009 @ 11:42 PM
Define autosave association callbacks when using accepts_nested_attributes_for.
This way we don't define all the validation methods for all
associations by
default, but only when needed.
[#3355 state:resolved] http://github.com/rails/rails/commit/f125a34501e21b1e0da2b80d149df7...
3 changed files
-
M
activerecord/lib/active_record/nested_attributes.rb -
M
activerecord/test/models/pirate.rb -
M
activerecord/test/models/ship.rb