Permalink
Browse files

fixing typo in from documentation

  • Loading branch information...
1 parent 4563995 commit b6ce2306cdbc5b074b75d5a22d6bfdc83a6a037a @subbarao subbarao committed Jun 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/relation/query_methods.rb
@@ -415,10 +415,10 @@ def create_with!(value)
#
# Can accept other relation objects. For example:
#
- # Topic.select('title').from(Topics.approved)
+ # Topic.select('title').from(Topic.approved)
# # => SELECT title FROM (SELECT * FROM topics WHERE approved = 't') subquery
#
- # Topics.select('a.title').from(Topics.approved, :a)
+ # Topic.select('a.title').from(Topic.approved, :a)
# # => SELECT a.title FROM (SELECT * FROM topics WHERE approved = 't') a
#
def from(value, subquery_name = nil)

0 comments on commit b6ce230

Please sign in to comment.