Piotr Sarnacki
eb23754ebb
Move template tests from actionpack to actionview
2013-06-20 17:23:16 +02:00
Bryan Ricker
3c516c4b52
Allow numbers in partial name for digesting
...
Add failing test for template with number at the end
Use \w for RENDER_DEPENDENCY regex
Spacing
Add CHANGELOG entry
2013-05-06 18:30:29 -07:00
Rafael Mendonça França
faa2c71dee
Revert "Merge pull request #10337 from eimermusic/fix_template_digestor_lookup"
...
This reverts commit b4239622af
, reversing
changes made to f99ce3c188
.
Reason: This broke the build
https://travis-ci.org/rails/rails/jobs/6629894
2013-04-25 11:14:22 -03:00
Martin Westin
9a79c13c45
AV Digestor correctly passes format to LookupContext
...
ActionView::Digestor now passes arguments correctly to
LookupContext::find method. This makes cache digests
respect the format option correctly.
FixtureFinder in tests also changed to reflect this.
2013-04-25 09:52:04 +02:00
Daniel Schierbeck
ec23296eb6
Register trackers on extensions, not handlers
2013-02-20 16:42:30 +01:00
Daniel Schierbeck
1879a33865
Allow registering custom dependency trackers
2013-02-20 16:17:55 +01:00
Jamis Buck
70e684a681
view_cache_dependency API
...
A declarative API for specifying dependencies that affect template
cache digest computation. In your controller, specify any of said
dependencies:
view_cache_dependency { "phone" if using_phone? }
When the block is evaluated, the resulting value is included in the
cache digest calculation, allowing you to generate different digests
for effectively the same template. (Mostly useful if you're mucking
with template load paths.)
2013-01-08 11:20:47 -07:00
Brian Alexander
749a745264
Digestor explicit dependency should not contain trailing whitespace
...
test for rails/rails#8586
2012-12-21 18:00:51 -07:00
Yves Senn
4d7f53379a
cleanup, remove trailing whitespace within actionpack
2012-10-27 16:03:18 +02:00
Aaron Patterson
d410ac5136
use the tmp filesystem rather than our own thing.
2012-10-17 11:30:08 -07:00
Andy Shipman
2938ef7a65
Allow for deep directory path for view templates.
2012-10-11 17:36:58 +01:00
Rafael Mendonça França
d8dee214e3
Use the same logger that ActionView::Base for the Digestor
2012-09-05 13:51:24 -03:00
kennyj
5225c1a472
Fix build about TemplateDigestorTest.
2012-08-30 23:55:42 +09:00
Christos Zisopoulos
17f2499f04
Digestor
can now parse old style hash syntax for render
2012-08-30 13:13:47 +02:00
Christos Zisopoulos
21bad7445b
Digestor
ignores most whitespace when parsing render
invocations
2012-08-30 13:01:25 +02:00
David Heinemeier Hansson
502d5e24e2
Add automatic template digests to all CacheHelper#cache calls (originally spiked in the cache_digests plugin) *DHH*
2012-08-29 14:23:56 -05:00