Use a safer check for :scoped being deprecated.

This works even if ActiveRecord is not defined.

Fixes the test failure mentioned here: https://github.com/josevalim/inherited_resources/pull/273#issuecomment-18204924