I have just added Spree to my site to add a store.
I was using Authlogic for authentication but I'm switching over to Devise to fit in with Spree's defaults.
I have a number of controllers unrelated to the store that I need to restrict to admin users.
So I'm hoping to put a before filter like `redirect_to login_path unless current_user.try(:admin?)` in those controllers.
However I'm getting the message that `current_user is not defined`.
I'm figuring this might have something to do with Devise's helpers only being available in Spree's only controller because Device is installed through Spree, right?
And if so how can I bring this across to my other admin-only controllers?
Thanks,
Steven