Rails question: I've got a token that needs to be dynamically generated on each request...where does that go? I'd like to basically be able to call `AppleMusic.token` anywhere in the app to get the dynamically generated string.
-
-
Would probably throw an error if one accessed AppleMusic.token if token didn't exist or had been revoked, because the failure mode I'm unfortunately quite familiar with is "D'oh some requests don't roll the interpreter's token." (For similar reasons, might auto-revoke after 10s.)
-
Also probably need to add an affordance if you routinely use irb to poke at model objects which would require it to be set.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.