I’m currently in the midst of writing a little post about how I solved this today but the gist of it is this:

I made a mixin that fetches some preloaded JSON from a meta-tag (but you could just as well GET api/users/me or something like that) and stores it on the ApplicationController. The code looks roughly like this: