You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then set Tournament.current in the controller before action. This is where the tournament is always fetched from. FYI this current stuff may land in Rails https://twitter.com/dhh/status/891058020976926720 this year
A middleware is added to ensure this state is cleared before each request
Shopify uses a pattern like this to sandbox things:
umbrella model concern (eg. tournament):
Then set Tournament.current in the controller before action. This is where the tournament is always fetched from. FYI this current stuff may land in Rails https://twitter.com/dhh/status/891058020976926720 this year
A middleware is added to ensure this state is cleared before each request
Lastly the cool part: active record is patched with this:
which implements the sandbox.
The text was updated successfully, but these errors were encountered: