spree/spree_auth_devise — pull request #225 by marcosteixeira (2014-09-25 20:18:02+00:00)
Title: User store location when signing in

I found an [issue](https://github.com/spree/spree/issues/5125) in Spree and to fix that I need to commit in this repo too.

User not being redirected to stored location after signing in/up.

This behavior occurs because the ```Spree::Core::ControllerHelpers::Auth#unauthorized``` was overridden in ```Spree::StoreController#unauthorized```.

I change the ```Spree::Core::ControllerHelpers::Auth#unauthorized``` to ```Spree::Core::ControllerHelpers::Auth#redirect_unauthorized_access```.

Now we can just call ```authorize! :action resource```. I added a feature test too.

This is the PR that I had to do in spree/spree: [PR](https://github.com/spree/spree/pull/5418)