diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-10-02 10:18:02 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-10-02 10:18:02 +0200 |
commit | 3b0d34ca179d6bf83e2911fdcd36076da43ca321 (patch) | |
tree | 151193d13197fe6ac45daafb38d297f0d0f42ca5 /activerecord/lib | |
parent | 4d38d33de1f3fb029eb4756dcfc08450df8a7337 (diff) | |
download | rails-3b0d34ca179d6bf83e2911fdcd36076da43ca321.tar.gz rails-3b0d34ca179d6bf83e2911fdcd36076da43ca321.tar.bz2 rails-3b0d34ca179d6bf83e2911fdcd36076da43ca321.zip |
improving `reload` doc wording. #12418 [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index 21eabd69f2..267aa28058 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -345,7 +345,8 @@ module ActiveRecord # # Account Load (1.2ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = $1 LIMIT 1 [["id", 1]] # # => #<Account id: 1, email: 'account@example.com'> # - # Attributes are updated, and caches busted, in particular the associations cache. + # Attributes are reloaded from the database, and caches busted, in + # particular the associations cache. # # If the record no longer exists in the database <tt>ActiveRecord::RecordNotFound</tt> # is raised. Otherwise, in addition to the in-place modification the method |