Added scoped variables parameter to devise