dasil003/validation_scopes — pull request #2 by wilsonfoz (2012-04-04 02:44:35+00:00)
Title: Added a method that returns all the scopes in a model

Added the method "all_scopes" to return an array with the scopes of a model. e.g.:

@user.class.all_scopes # User model with the scopes :warnings and :alerts
=> [:warnings, :alerts]