File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 75
75
binding_of_caller (0.7.2 )
76
76
debug_inspector (>= 0.0.1 )
77
77
builder (3.2.3 )
78
- bullet (5.7.1 )
78
+ bullet (5.7.6 )
79
79
activesupport (>= 3.0.0 )
80
80
uniform_notifier (~> 1.11.0 )
81
81
byebug (2.7.0 )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class Admin::InvitationController < Admin::ApplicationController
5
5
6
6
def update
7
7
invitation = Invitation . find_by ( token : params [ :invitation ] [ :id ] )
8
- invitation . update_attributes ( attending : true , verified : true , verified_by : current_user )
8
+ invitation . update ( attending : true , verified : true , verified_by : current_user )
9
9
10
10
EventInvitationMailer . attending ( invitation . event , invitation . member , invitation ) . deliver_now
11
11
@@ -14,7 +14,7 @@ def update
14
14
15
15
def verify
16
16
invitation = Invitation . find_by ( token : params [ :invitation_id ] )
17
- invitation . update_attributes ( verified : true , verified_by : current_user )
17
+ invitation . update ( verified : true , verified_by_id : current_user . id )
18
18
19
19
EventInvitationMailer . attending ( invitation . event , invitation . member , invitation ) . deliver_now
20
20
@@ -23,7 +23,7 @@ def verify
23
23
24
24
def cancel
25
25
invitation = Invitation . find_by ( token : params [ :invitation_id ] )
26
- invitation . update_attribute ( : attending, false )
26
+ invitation . update ( attending : false )
27
27
28
28
redirect_to :back , notice : "You have cancelled #{ invitation . member . full_name } 's attendance."
29
29
end
You can’t perform that action at this time.
0 commit comments