diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index 737f192731568b745d48a9ad6225ee1bc984bde8..6a310bba51401fcf175ff87bfe1a3bd2a95a75eb 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -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)