3868910dde
* actioncable needs puma not webrick * add framework * remove the old way * send events from server to client * get all events working * clean up receivable * map is polymorphic on message * add the moved event * make todo comments clear * verify before streaming from map channel * rubocop fixes * wasn't set up correctly for nodejs realtime
10 lines
365 B
Ruby
10 lines
365 B
Ruby
Warden::Manager.after_set_user do |user,auth,opts|
|
|
scope = opts[:scope]
|
|
auth.cookies.signed["#{scope}.id"] = user.id
|
|
auth.cookies.signed["#{scope}.expires_at"] = 30.minutes.from_now
|
|
end
|
|
Warden::Manager.before_logout do |user, auth, opts|
|
|
scope = opts[:scope]
|
|
auth.cookies.signed["#{scope}.id"] = nil
|
|
auth.cookies.signed["#{scope}.expires_at"] = nil
|
|
end
|