diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-10-02 02:00:50 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-10-02 02:00:50 +0000 |
commit | e19bd169fac08052e7f0ae4ae4e5ac368629d31f (patch) | |
tree | 2d2bfafaa3f834440a144c8f175ac200b4f0e5f3 /actionpack/lib/action_view/helpers/pagination_helper.rb | |
parent | c6d8a1f975e1daad6bd4de029a964475d1777edc (diff) | |
download | rails-e19bd169fac08052e7f0ae4ae4e5ac368629d31f.tar.gz rails-e19bd169fac08052e7f0ae4ae4e5ac368629d31f.tar.bz2 rails-e19bd169fac08052e7f0ae4ae4e5ac368629d31f.zip |
Association validation does not belong in a before_save callback: move it into a validation method. Restores the expected model.valid? == model.save. Add tests for cancelling save by returning false from a before_save callback. Remove assumption that before_destroy's return value indicates whether the record was destroyed.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/pagination_helper.rb')
0 files changed, 0 insertions, 0 deletions