Skip to content

Commit

Permalink
Name the root helpers differently
Browse files Browse the repository at this point in the history
Required by Rails upgrade. See heartcombo/devise#2393
  • Loading branch information
frankieroberto committed May 27, 2020
1 parent b6e0982 commit be1f777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psd-web/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@

mount PgHero::Engine, at: "pghero"
authenticated :user, ->(user) { user.is_opss? } do
root to: redirect("/cases")
root to: redirect("/cases"), as: :opss_authenticated_root
end

authenticated :user, ->(user) { !user.is_opss? } do
root to: "homepage#non_opss"
root to: "homepage#non_opss", as: :authenticated_root
end

unauthenticated do
Expand Down

0 comments on commit be1f777

Please sign in to comment.