diff --git a/lib/inherited_resources/base_helpers.rb b/lib/inherited_resources/base_helpers.rb
index <HASH>..<HASH> 100644
--- a/lib/inherited_resources/base_helpers.rb
+++ b/lib/inherited_resources/base_helpers.rb
@@ -22,7 +22,7 @@ module InheritedResources
       def collection
         get_collection_ivar || begin
           c = end_of_association_chain
-          use_scoped = c.respond_to?(:scoped) && !ActiveRecord.const_defined?(:DeprecatedFinders)
+          use_scoped = c.respond_to?(:scoped) && !defined?(ActiveRecord::DeprecatedFinders)
           set_collection_ivar(use_scoped ? c.scoped : c.all)
         end
       end
Use a safer check for :scoped being deprecated.

This works even if ActiveRecord is not defined.