Open
Description
Problem
- Sync partials should not be able to access
current_user
,params
, etc - When
sync_update
(orsync_new
) are called from inside of a request environment, they can access the variables inside of that environment - This can lead to silent errors, or errors that occur only in production when background jobs are enabled. (Silent error when
current_user
is called withoutrefetch: true
#190 might be an example of one of these)
Solution
- Disable access to request environment when calling sync actions
- Disable access to request environment when rendering sync partials, always? (This might be a breaking change...)