Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 696 Bytes

UPGRADING.md

File metadata and controls

18 lines (9 loc) · 696 Bytes

Upgrading rpi-auth

Here are the details of the changes needed when upgrading between major versions of this gem.

v1 to v2

Definitely change the following:

  1. Replace references to RpiAuth::AuthenticationHelper with RpiAuth::Controllers::CurrentUser.
  2. Change extend RpiAuth::Models::Authenticatable to include RpiAuth::Models::Authenticatable.

You might also need to;

  • Remove dummy login route in /config/routes.rb, and replace references to login_path with rpi_auth_login_path.
  • Change the railties order if your app uses globbed/catch-all routes