Skip to content

Commit

Permalink
Fix typos in docs for ActiveRecord::Core::arel_table [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-rushakoff committed May 16, 2012
1 parent b1dfcc9 commit 6a12900
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions activerecord/lib/active_record/core.rb
Expand Up @@ -127,12 +127,10 @@ def ===(object)
object.is_a?(self)
end

# Returns an instance of +Arel::Table+ loaded with the current
# table name
# Returns an instance of Arel::Table loaded with the current table name.
#
# class Post < ActiveRecord::Base
# scope :published_and_commented, published.and(self.arel_table[:comments_count].gt(0))
# end
# end
def arel_table
@arel_table ||= Arel::Table.new(table_name, arel_engine)
Expand Down

0 comments on commit 6a12900

Please sign in to comment.