diff options
author | Eugene Gilburg <eugene.gilburg@gmail.com> | 2014-10-23 19:51:53 -0700 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-10-24 13:09:05 -0700 |
commit | df1dda8b71023d1f76e9ee827e2aca6f8a5ec3c0 (patch) | |
tree | 0f7ab6679a0a03b61760dbe6d72979afa39036b0 /activemodel/test/cases/forbidden_attributes_protection_test.rb | |
parent | 85faea4b8320e728854838c6da97c9435de8869e (diff) | |
download | rails-df1dda8b71023d1f76e9ee827e2aca6f8a5ec3c0.tar.gz rails-df1dda8b71023d1f76e9ee827e2aca6f8a5ec3c0.tar.bz2 rails-df1dda8b71023d1f76e9ee827e2aca6f8a5ec3c0.zip |
Improved try documentation [ci skip]
- better `if` example
- Added chaining example to the try method description
- Documented the `respond_to?` check to the try method description
- Clearer wording to explain that argument error is raised on argument mismatch to responding method, rather than to non-responding method (which is handled without exception by `try`)
- `.any?` is more precise than `! .blank?`
- Don't need to use `try` on `children` as (for regular associations) they will always be a collection or array that responds to `first`
- Fix typos/grammar
Diffstat (limited to 'activemodel/test/cases/forbidden_attributes_protection_test.rb')
0 files changed, 0 insertions, 0 deletions