def authorization_target(original_class):
def can(self, action, subject):<EOL><INDENT>ability = Ability(self, get_authorization_method())<EOL>return ability.can(action, subject)<EOL><DEDENT>def cannot(self, action, subject):<EOL><INDENT>return not can(self, action, subject)<EOL><DEDENT>setattr(original_class, '<STR_LIT>', can)<EOL>setattr(original_class, '<STR_LIT>', cannot)<EOL>return original_class<EOL>
Add bouncer goodness to the model.  This is a class decorator, when added to your User model if will add
        ``can`` and ``cannot`` methods to the class
    :param original_class:  the User class to be decorated