提交 6a129006 编写于 作者: M Mark Rushakoff

Fix typos in docs for ActiveRecord::Core::arel_table [ci skip]

上级 b1dfcc96
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册