aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-14 15:42:09 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-05-14 15:42:09 -0300
commit96da5e73dfa2a728472df42f441859154ac1eb97 (patch)
tree53236ba8f950333f9bb75107d441a68480687ea8 /activerecord
parent1560370c3c6324545bd441aa68fef6faed309634 (diff)
parent5fc9dff8831db49060ba7bb086dc85c92c7d2a18 (diff)
downloadrails-96da5e73dfa2a728472df42f441859154ac1eb97.tar.gz
rails-96da5e73dfa2a728472df42f441859154ac1eb97.tar.bz2
rails-96da5e73dfa2a728472df42f441859154ac1eb97.zip
Merge pull request #15074 from kuldeepaggarwal/docs-changes
Add missing information, ref[#522c0fd]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/attribute_methods.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb
index 7fd7accc6b..8bd51dc71f 100644
--- a/activerecord/lib/active_record/attribute_methods.rb
+++ b/activerecord/lib/active_record/attribute_methods.rb
@@ -359,6 +359,8 @@ module ActiveRecord
# "2004-12-12" in a date column is cast to a date object, like Date.new(2004, 12, 12)). It raises
# <tt>ActiveModel::MissingAttributeError</tt> if the identified attribute is missing.
#
+ # Note: +:id+ is always present.
+ #
# Alias for the <tt>read_attribute</tt> method.
#
# class Person < ActiveRecord::Base