Skip to content

Commit

Permalink
Prepend mount to accommodate catch-all routes
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeclaghorn committed Sep 23, 2018
1 parent 527c9c1 commit 52f71b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/google_sign_in/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Engine < ::Rails::Engine
end

initializer 'google_sign_in.mount' do |app|
app.routes.append do
app.routes.prepend do
mount GoogleSignIn::Engine, at: app.config.google_sign_in.root || 'google_sign_in'
end
end
Expand Down

0 comments on commit 52f71b3

Please sign in to comment.