Fix Scoped for Rails 4+

Applied ryanb/cancan#992 to fix deprecations in 4.0 and exceptions in 4.1