Skip to content

Commit

Permalink
Query guide: visists => visits
Browse files Browse the repository at this point in the history
  • Loading branch information
radar committed Dec 23, 2010
1 parent 06e2f7c commit e4314e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/active_record_querying.textile
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ client.visits += 1
client.save
</ruby>

As +client+ is explicitly set to be a readonly object, the above code will raise an +ActiveRecord::ReadOnlyRecord+ exception when calling +client.save+ with an updated value of _visists_.
As +client+ is explicitly set to be a readonly object, the above code will raise an +ActiveRecord::ReadOnlyRecord+ exception when calling +client.save+ with an updated value of _visits_.

h3. Locking Records for Update

Expand Down

0 comments on commit e4314e7

Please sign in to comment.