diff options
author | Xavier Noria <fxn@hashref.com> | 2009-05-06 22:49:31 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-05-06 22:49:31 +0200 |
commit | 1135e29bab052c7f0987d168b989d6621fc85311 (patch) | |
tree | a6a5dc696c060c1321ef60a67ca7b5ea70508792 /railties/guides/source | |
parent | 0dc17a2616feb75305e16b0aaa7a54ff2a73d8bd (diff) | |
download | rails-1135e29bab052c7f0987d168b989d6621fc85311.tar.gz rails-1135e29bab052c7f0987d168b989d6621fc85311.tar.bz2 rails-1135e29bab052c7f0987d168b989d6621fc85311.zip |
destroyal -> destruction, thanks to FelixLeiter
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index 1b1d9a8009..0f4844f515 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -538,7 +538,7 @@ This will return single order objects for each day, but only for the last month. h4. Readonly Objects -To explicitly disallow modification/destroyal of the matching records returned by +Model.find+, you could specify the +:readonly+ option as +true+ to the find call. +To explicitly disallow modification/destruction of the matching records returned by +Model.find+, you could specify the +:readonly+ option as +true+ to the find call. Any attempt to alter or destroy the readonly records will not succeed, raising an +ActiveRecord::ReadOnlyRecord+ exception. To set this option, specify it like this: |