From 3ac6646d6f9ad978e8f245883b6227499785bf3e Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Wed, 25 Aug 2010 01:05:51 +0200 Subject: :nodoc:s #unscoped until its behavior is more clear, now sometimes works, sometimes not --- activerecord/lib/active_record/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 4bbf5cd3d1..a73a9d5fef 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -881,7 +881,7 @@ module ActiveRecord #:nodoc: # # Post.unscoped.published # Post.published - def unscoped + def unscoped #:nodoc: block_given? ? relation.scoping { yield } : relation end -- cgit v1.2.3