aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/validations_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-10-01 19:15:51 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-10-01 19:15:51 +0000
commit0092d0ac6de041995d6f4555c6e52590799cbefb (patch)
treeee9c20184991e1226c79430c9527fa9086ad9757 /activerecord/test/validations_test.rb
parentf1d1f01b6d792b6e02bde2b5d73f833edc65d211 (diff)
downloadrails-0092d0ac6de041995d6f4555c6e52590799cbefb.tar.gz
rails-0092d0ac6de041995d6f4555c6e52590799cbefb.tar.bz2
rails-0092d0ac6de041995d6f4555c6e52590799cbefb.zip
Association collections have an _ids reader method to match the existing writer for collection_select convenience (e.g. employee.task_ids). The writer method skips blank ids so you can safely do @employee.task_ids = params[:tasks] without checking every time for an empty list or blank values. References #1887, Closes #5780.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/validations_test.rb')
0 files changed, 0 insertions, 0 deletions