Rails default_scopeを個別に外す。 default_scopeを全部外すにはunscopedだったのですが、特定の条件だけ外すにはどうしたらよいのか調べていたら、こちらにたどり着きました。default_scopeのorderをキャンセルする-とある技術屋の戯言Model.r... 2010.11.18 RailsRuby
Rails default_scopeはunscopedで外す。 with_exclusive_scope(ActiveRecord::Base)-APIdockInRails3use"unscoped"insteadThewith_exclusive_scopeexamplesnolongerworki... 2010.11.14 RailsRuby