aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/examples
diff options
context:
space:
mode:
authorAmparo Luna + Guillermo Iguaran <amparo.m.luna@gmail.com+guilleiguaran@gmail.com>2013-01-02 16:16:24 -0500
committerAmparo Luna + Guillermo Iguaran <amparo.m.luna@gmail.com+guilleiguaran@gmail.com>2013-01-03 12:03:34 -0500
commit1bb020063c1bad6cc6a2ad7a4635bfc31a308f65 (patch)
tree1559ce4b520e4134ad2ea52a1f6e20f3581aa300 /activerecord/examples
parent1f3a1fedf951dbc4b72d178e2a649c4afd2f1566 (diff)
downloadrails-1bb020063c1bad6cc6a2ad7a4635bfc31a308f65.tar.gz
rails-1bb020063c1bad6cc6a2ad7a4635bfc31a308f65.tar.bz2
rails-1bb020063c1bad6cc6a2ad7a4635bfc31a308f65.zip
Change docs to use update instead of update_attributes
Diffstat (limited to 'activerecord/examples')
-rw-r--r--activerecord/examples/performance.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/examples/performance.rb b/activerecord/examples/performance.rb
index cd9825b50c..ad12f8597f 100644
--- a/activerecord/examples/performance.rb
+++ b/activerecord/examples/performance.rb
@@ -143,7 +143,7 @@ Benchmark.ips(TIME) do |x|
end
x.report 'Resource#update' do
- Exhibit.first.update_attributes(:name => 'bob')
+ Exhibit.first.update(name: 'bob')
end
x.report 'Resource#destroy' do