Variation of rails/devise/pundit example from the RailsApps Project