This project is archived and is in readonly mode.
caches_action with conditional
-
Repository
- State changed from new to resolved
(from [9a137506a1267ec5938fcec4d2ff135f15037459]) Added not to sanitize helper docs that it doesn't guarantee well-formed markup.
Signed-off-by: Michael Koziarski
[#166 state:resolved]
-
Michael Koziarski
Could we have the patch without the :layout option? I'm not necessarily sold on that one prior to 2.1, but :if looks good.
-
José Valim
- Title changed from [PATCH] caches_action extension (with :if and :layout keys) to [PATCH] caches_action with conditional
:layout option removed! =)
Should I do another patch just with the :layout option?
And I don not know if would be important to document, but all parameters give to caches_action (except for :caches_path) are passed to the around_filter. This means that we can use the conditional (:if) and, also, use :only and :except to specify the actions we want to cache.
The same happens with caches_page.
-
Pratik
- Title changed from [PATCH] caches_action with conditional to caches_action with conditional
-
josh
- Assigned user set to josh
Looks good, but its making my AR integration tests fail for some reason. Maybe it has something todo w/ the tests you changed. Anyone else having this problem?
Updated
Its not related to the tests. The integration tests will fail only if the patch is applied to actions.
-
Pratik
Works fine for me.
-
José Valim
It's also working fine for me.
I didn't get where is the problem yet (if there is any).
-
Pratik
- State changed from new to incomplete
Can you please use mocking instead of sleep(0.01) ?
Thanks.
-
José Valim
Here we go!
As Pratik asked, I'm using a MockTime instead of sleep(0.01).
All tests pass!
-
Repository
- State changed from open to resolved
(from [7708650f73ddb4db300ea2059c60c1d907a4384e]) Added conditional support to caches_action [José Valim] [#166 state:resolved]
