with_exclusive_scope (ActiveRecord::Base) – APIdock In Rails3 use "unscoped" instead The with_exclusive_scope examples no longer work in Rails3 because with_exclusive_scope is now a protected method which can and should not be used in a controller. Use the new unscoped method instead: ほー。 class Post < ActiveRecord::Base default_scope :published => true end Post.all #=> SELECT * FROM posts WHERE pu
![default_scopeはunscopedで外す。](https://cdn-ak-scissors.b.st-hatena.com/image/square/ed84b3287ecd15520544feab018c3f98e4b35446/height=288;version=1;width=512/https%3A%2F%2Fsaikyoline.jp%2Fweblog%2Fwp-content%2Fthemes%2Fcocoon-master%2Fscreenshot.jpg)