Rails foundationSort Order

Rails: Optimising the Current User Method with Memoization

In this episode we show you how to use memoization in your application, to cache objects on a per-request basis. This way your application will only load the object only once.