When under Rails 4, warn about scopes that don't pass a lambda or method name. Preserve backwards compatibility with Rails 3.