aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2015-05-12 13:49:27 +0900
committeryui-knk <spiketeika@gmail.com>2015-05-12 13:49:27 +0900
commit7656d672aa0e0063fce5a28fbf28e01c073f4f4e (patch)
tree1096bbc812df8fd39be82556a4bd7a6c3a9978c6 /guides
parent7fb45a6130598703b3da8fe9ef29a5c7a1eb9d09 (diff)
downloadrails-7656d672aa0e0063fce5a28fbf28e01c073f4f4e.tar.gz
rails-7656d672aa0e0063fce5a28fbf28e01c073f4f4e.tar.bz2
rails-7656d672aa0e0063fce5a28fbf28e01c073f4f4e.zip
[ci skip] Fix `transaction` code example
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_querying.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index 2f10bc4e7c..72b75f1e1d 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -898,7 +898,7 @@ For example:
Item.transaction do
i = Item.lock.first
i.name = 'Jones'
- i.save
+ i.save!
end
```