Method: Volt.user_id_signature
- Defined in:
- lib/volt/volt/users.rb
.user_id_signature ⇒ Object
Fetches the user_id+signature from the correct spot depending on client or server, does not verify it.
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/volt/volt/users.rb', line 99 def user_id_signature if Volt.client? user_id_signature = $page.._user_id else # Check meta for the user id and validate it = Thread.current['meta'] if user_id_signature = ['user_id'] else user_id_signature = nil end end user_id_signature end |