Skip to content

Commit

Permalink
Moved location where relationships are checked
Browse files Browse the repository at this point in the history
  • Loading branch information
timmartin19 committed Nov 9, 2015
1 parent f9b6312 commit 2a7f473
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ripozo/dispatch_base.py
Expand Up @@ -141,6 +141,8 @@ def register_resources(self, *classes):
"""
for klass in classes:
self._register_class_routes(klass)
for klass in classes:
self._check_relationships(klass)

def _register_class_routes(self, klass):
"""
Expand All @@ -166,7 +168,6 @@ class whose endpoints must be registered
' with the methods %s on a DispatcherBase '
'subclass', endpoint, route, methods)
self.register_route(endpoint, route=route, methods=methods, **options)
self._check_relationships(klass)

@abstractmethod
def register_route(self, endpoint, endpoint_func=None, route=None, methods=None, **options):
Expand Down

0 comments on commit 2a7f473

Please sign in to comment.