README.md in actioncable-5.1.0.rc1 vs README.md in actioncable-5.1.0.rc2
- old
+ new
@@ -51,11 +51,11 @@
self.current_user = find_verified_user
end
private
def find_verified_user
- if current_user = User.find_by(id: cookies.signed[:user_id])
- current_user
+ if verified_user = User.find_by(id: cookies.signed[:user_id])
+ verified_user
else
reject_unauthorized_connection
end
end
end