File tree Expand file tree Collapse file tree 3 files changed +13
-18
lines changed Expand file tree Collapse file tree 3 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ gem 'mongoid_auto_increment_id', '0.6.4'
33
33
gem 'mongoid_rails_migrations' , '1.0.0'
34
34
35
35
# 用户系统
36
- gem 'devise' , github : "plataformatec/devise" , branch : "lm-rails-4-2"
36
+ gem 'devise' , '~> 3.4.0'
37
37
gem 'devise-encryptable' , '0.1.2'
38
38
39
39
# 分页
Original file line number Diff line number Diff line change 1
- GIT
2
- remote: git://github.com/plataformatec/devise.git
3
- revision: ee69d41fc1707c5b7b2630034dc1d120b6200f56
4
- branch: lm-rails-4-2
5
- specs:
6
- devise (3.3.0 )
7
- bcrypt (~> 3.0 )
8
- orm_adapter (~> 0.1 )
9
- railties (>= 3.2.6 , < 5 )
10
- responders
11
- thread_safe (~> 0.1 )
12
- warden (~> 1.2.3 )
13
-
14
1
GEM
15
2
remote: https://ruby.taobao.org/
16
3
specs:
69
56
descendants_tracker (~> 0.0.4 )
70
57
ice_nine (~> 0.11.0 )
71
58
thread_safe (~> 0.3 , >= 0.3.1 )
72
- bcrypt (3.1.7 )
59
+ bcrypt (3.1.9 )
73
60
bootstrap-sass (2.3.2.2 )
74
61
sass (~> 3.2 )
75
62
bootstrap-will_paginate (0.0.3 )
120
107
database_cleaner (1.3.0 )
121
108
descendants_tracker (0.0.4 )
122
109
thread_safe (~> 0.3 , >= 0.3.1 )
110
+ devise (3.4.0 )
111
+ bcrypt (~> 3.0 )
112
+ orm_adapter (~> 0.1 )
113
+ railties (>= 3.2.6 , < 5 )
114
+ responders
115
+ thread_safe (~> 0.1 )
116
+ warden (~> 1.2.3 )
123
117
devise-encryptable (0.1.2 )
124
118
devise (>= 2.1.0 )
125
119
diff-lcs (1.2.5 )
327
321
redis-objects (0.9.1 )
328
322
redis (>= 3.0.2 )
329
323
remotipart (1.2.1 )
330
- responders (2.0.0 )
324
+ responders (2.0.1 )
331
325
railties (>= 4.2.0.alpha , < 5 )
332
326
rest-client (1.7.2 )
333
327
mime-types (>= 1.16 , < 3.0 )
@@ -431,7 +425,7 @@ DEPENDENCIES
431
425
coffee-rails (~> 4.0.0 )
432
426
dalli (= 2.7.1 )
433
427
database_cleaner
434
- devise !
428
+ devise ( ~> 3.4.0 )
435
429
devise-encryptable (= 0.1.2 )
436
430
eventmachine (= 1.0.3 )
437
431
exception_notification
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ def destroy
39
39
40
40
if current_user . valid_password? ( current_password )
41
41
resource . soft_delete
42
- sign_out_and_redirect ( root_path )
42
+ sign_out
43
+ redirect_to root_path
43
44
set_flash_message :notice , :destroyed
44
45
else
45
46
current_user . errors . add ( :current_password , :invalid )
You can’t perform that action at this time.
0 commit comments