aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-04-19 23:37:40 -0700
committerXavier Noria <fxn@hashref.com>2013-04-19 23:37:40 -0700
commit7004f100a1fe5de46217e8293d139235229fdc56 (patch)
treeaa36ca1a975b3854391ddda57ce526204d9766ea
parenta489bfe48bc0fbbb50a472bc66bd42d408c73fcb (diff)
parent42df4b573e6a1ecf2a702225aca231cc10e75f31 (diff)
downloadrails-7004f100a1fe5de46217e8293d139235229fdc56.tar.gz
rails-7004f100a1fe5de46217e8293d139235229fdc56.tar.bz2
rails-7004f100a1fe5de46217e8293d139235229fdc56.zip
Merge pull request #10273 from prathamesh-sonpatki/AR-typos
Typo Fix in AR CHANGELOG [ci skip]
-rw-r--r--activerecord/CHANGELOG.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index e46ca3bd07..3f9dddf57c 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -8,10 +8,10 @@
post = Post.select("'title' as post_title").first
In the above case when `post.body` is invoked then an exception is
- raised since `body` attribute is not selected. Howevere `respond_to?`
+ raised since `body` attribute is not selected. However `respond_to?`
did not behave correctly.
- pos.respond_to?(:body) #=> true
+ post.respond_to?(:body) #=> true
Reason was that Active Record calls `super` to pass the call to
Active Model and all the columns are defined on Active Model.