Fix: include option api correction #6

Merged
joeybaker merged 1 commits from fix-include into master 2016-07-09 04:43:14 +00:00

1 Commits

Author SHA1 Message Date
Joey Baker
2ea6c2e3a8 Fix: include option api correction
AFAIK, hapi-sequelize doesn't have a `request.models`, but it does have
a `request.getDb()` method that has `models` on it. This calls that
method to get the related models, but allows `request.models` to keep
working for backward compatibility.
2016-07-08 15:28:33 -07:00