Skip to content

Commit

Permalink
Merge pull request #10273 from prathamesh-sonpatki/AR-typos
Browse files Browse the repository at this point in the history
Typo Fix in AR CHANGELOG [ci skip]
  • Loading branch information
fxn committed Apr 20, 2013
2 parents a489bfe + 42df4b5 commit 7004f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7004f10

Please sign in to comment.