Skip to content

Commit

Permalink
Merge pull request #918 from MasoniteFramework/fix/self-resolving
Browse files Browse the repository at this point in the history
fixed potential issues with self argument not resolving
  • Loading branch information
josephmancuso committed Oct 10, 2019
2 parents 6236948 + 3441ec9 commit 660ce66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion masonite/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__title__ = 'masonite'
__description__ = 'The core for the Masonite framework'
__url__ = 'https://github.com/MasoniteFramework/masonite'
__version__ = '2.2.20'
__version__ = '2.2.21'
__author__ = 'Joseph Mancuso'
__author_email__ = 'joe@masoniteproject.com'
__licence__ = 'MIT'
2 changes: 2 additions & 0 deletions masonite/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def resolve(self, obj, *resolving_arguments):
if inspect.isclass(param):
param = self.resolve(param)
objects.append(param)
elif 'self' in str(value):
objects.append(obj)
elif '=' in str(value):
objects.append(value.default)
elif '*' in str(value):
Expand Down

0 comments on commit 660ce66

Please sign in to comment.