Define Rails3ClassMethods so that named_scope is not called in activerecord 3