revise_auth-jets 0.2.9 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e48e02003acd849df39aeaff4dd064bea52e22fc73934a26187dcfd101e5b757
4
- data.tar.gz: 323f662581f6c06ab48955979394dc46a6e854a51e327a11097448f74ef66e92
3
+ metadata.gz: ad5830138b573376c725bdd2f4cf927451b5ba9f561b45cd88b5235e438459d6
4
+ data.tar.gz: 6458c724a0afcd5164c6cb1a3d822fdcfc7da9f3d22234057a24b2e6e4d7d90a
5
5
  SHA512:
6
- metadata.gz: 923e6b3260121421e3d9c0db4fe693ed5aa85e03dadfe4d0ba8602bdf3956211331159caea7b73e099ec6db4b5950fad6612f1c161abee7c6607cda152a73538
7
- data.tar.gz: bc6c0e639d25510b33500622a35165316a6e1e51646d31535a6ab445227b903aa05cc74eda4fd94502247cb5d3a6480afd8bb9e39996f34d0486afc625ddad3a
6
+ metadata.gz: a1b995b99756a0626ac174ccbba43aa4444f2136c87f91482192799e9f53baf00702e9ce73534af5302050eb75a4fb2024dcab1ce94de030f1fe978ebe94fc78
7
+ data.tar.gz: 4d4503bbdd0025ae4a5a966bb82ea0740a251190d1e5b1514f287ae0704b9edc1ed683100a118e81eeed7d264782090572a69aa1bb76ebc9b4e6b0e1837c7b7f
data/app/config/routes.rb CHANGED
@@ -12,7 +12,7 @@ Jets.application.routes.draw do
12
12
 
13
13
  get "profile", to: "registrations#edit", as: :profile
14
14
  patch "profile", to: "registrations#update"
15
- delete "profile", to: "registrations#destroy"
15
+ delete "profile", to: "registrations#delete"
16
16
  patch "profile/email", to: "email#update"
17
17
  get "profile/password", to: "registrations#edit", as: :profile_password
18
18
  patch "profile/password", to: "password#update"
@@ -26,7 +26,7 @@ class ReviseAuth::RegistrationsController < ReviseAuthController
26
26
  end
27
27
  end
28
28
 
29
- def destroy
29
+ def delete
30
30
  current_user.destroy
31
31
  logout
32
32
  redirect_to root_path, status: :see_other, alert: I18n.t("revise_auth.account_deleted")