Closed theodorton closed 10 years ago
Proposed minor version bump (see README edit)
Thanks for the pull request. I went ahead and made some changes so that the promise could resolve or reject correctly for testing. I also updated the tests to use jasmine 2.0.
The promise will either resolve or reject based on the authorization attempt.
Should be backwards compatible as the
authorize
function didn't have any return value before, but for coffeescript users, there may be some issues with implicit returns when the function is called from amodel
hook in anEmber.Route
.