Skip to content

Commit

Permalink
Make _perform_validate a class method as it doesn't actually depend o…
Browse files Browse the repository at this point in the history
…n the controller instance
  • Loading branch information
amol- committed Oct 10, 2013
1 parent 7306e93 commit d0856b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tg/controllers/decoratedcontroller.py
Expand Up @@ -134,7 +134,8 @@ def _call(self, controller, params, remainder=None, tgl=None):

return response['response']

def _perform_validate(self, controller, params):
@classmethod
def _perform_validate(cls, controller, params):
"""Run validation for the controller with the given parameters.
Validation is stored on the "validation" attribute of the controller's
Expand Down

0 comments on commit d0856b1

Please sign in to comment.