diff options
author | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2013-11-27 12:23:23 +0530 |
---|---|---|
committer | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2013-11-27 12:23:23 +0530 |
commit | c29124c4bdf8707c8759d9953f28cf00abfa76b2 (patch) | |
tree | a037737ef211fe9fdf79325f58f797e06871c473 /activerecord/lib/active_record | |
parent | 5fdbec7dd15a8e6edef861899accb8b3b69cc87a (diff) | |
download | rails-c29124c4bdf8707c8759d9953f28cf00abfa76b2.tar.gz rails-c29124c4bdf8707c8759d9953f28cf00abfa76b2.tar.bz2 rails-c29124c4bdf8707c8759d9953f28cf00abfa76b2.zip |
[ci skip] used new syntax for scopes
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index 96b5686ae0..8808ad5a4c 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -126,7 +126,7 @@ module ActiveRecord # Returns an instance of <tt>Arel::Table</tt> loaded with the current table name. # # class Post < ActiveRecord::Base - # scope :published_and_commented, published.and(self.arel_table[:comments_count].gt(0)) + # scope :published_and_commented, -> { published.and(self.arel_table[:comments_count].gt(0)) } # end def arel_table @arel_table ||= Arel::Table.new(table_name, arel_engine) |