aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/lookup_context_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add ActionView::Base.default_formatsPiotr Sarnacki2012-08-281-0/+11
| | | | | | | | default_formats array is used by LookupContext in order to allow rendering templates when :formats option is not passed. Previously it was always set to Mime::SET, which created dependency on Action Pack. In order to remove this dependency, Mime::SET is used only if ActionController is loaded.
* Make the Resolver template cache threadsafe - closes #6404Tom Clarke2012-05-211-4/+4
| | | | | | | | | The Template cache in the Resolver can be accessed by multiple threads similtaneously in multi-threaded environments. The cache is implemented using a Hash, which isn't threadsafe in all VMs (notably JRuby). This commit extracts the cache to a new Cache class and adds mutexes to prevent concurrent access.
* Revert "Merge pull request #6425 from pinetops/resolver_concurrency_fix"José Valim2012-05-211-4/+4
| | | | | This reverts commit 254c04286c5916ae7f91eb6e173b312e7a74e364, reversing changes made to 513a0525c24c2944630acfa465b22cd2f4601adf.
* Make the Resolver template cache threadsafe - closes #6404Tom Clarke2012-05-211-4/+4
| | | | | | | | | The Template cache in the Resolver can be accessed by multiple threads similtaneously in multi-threaded environments. The cache is implemented using a Hash, which isn't threadsafe in all VMs (notably JRuby). This commit extracts the cache to a new Cache class and adds mutexes to prevent concurrent access.
* format lookup for partials is derived from the format in which the template ↵Santiago Pastorino2012-02-221-2/+2
| | | | | | is being rendered Closes #5025 part 2
* Clean up details keys before some tests to expire the cache.José Valim2011-12-141-7/+1
|
* Get rid of update_details in favor of passing details to find_template.José Valim2011-09-221-10/+0
|
* Merge pull request #420 from burke/masterJosé Valim2011-05-081-0/+9
|\ | | | | Accept single prefix in ActionView::MissingTemplate#initialize
| * Added a test for MissingTemplate change, and changed to use Array.wrap() asBurke Libbey2011-05-061-0/+9
| | | | | | | | requested by josevalim.
* | Always expand */*José Valim2011-05-071-1/+1
| |
* | Fixes ticket #6379. Improved the handling of Accept headers containing */*.mathieuravaux2011-05-071-0/+5
|/ | | | | | | `lookup_context#formats=` being too restrictive, "Accept: text/javascript, */*" resulted in [:js, "*/*"] formats instead of [:js, :html]. Signed-off-by: José Valim <jose.valim@gmail.com>
* fixed test to assert initialization value.Nick Sutterer2011-05-041-1/+1
|
* added :prefixes accessor to LookupContext.Nick Sutterer2011-05-031-0/+6
|
* Buffer should be an option passed down to template rendering.José Valim2011-04-161-25/+0
|
* Use Mime::Type references.José Valim2011-02-081-1/+1
|
* Solve SystemStackError when changing locale inside ActionMailer [#5329 ↵José Valim2011-01-191-1/+1
| | | | state:resolved]
* Don't be so picky on MissingTemplate error details, this fails randomly on ↵Piotr Sarnacki2010-12-311-4/+3
| | | | 1.8.7 because of not ordered hash
* added tests for the MissingTemplate exception message.Nick Sutterer2010-12-311-0/+21
|
* all tests passartemave2010-12-261-24/+24
|
* Allow template handlers to store temp data.José Valim2010-11-241-2/+27
|
* Remove :cache => true on lookup templates initialization.José Valim2010-10-141-4/+0
|
* Do not allow templates coming from Fallback resolvers to store a virtual path.José Valim2010-10-101-2/+2
|
* Resolvers now consider timestamps.José Valim2010-10-101-0/+45
| | | | | | | | | | | Before this patch, every request in development caused the template to be compiled, regardless if it was updated in the filesystem or not. This patch now checks the timestamp and only compiles it again if any change was done. While this probably won't show any difference for current setups, but it will be useful for asset template handlers (like SASS), as compiling their templates is slower than ERb, Haml, etc.
* Allow cache to be temporarily disabled through lookup_context.José Valim2010-10-071-0/+21
|
* Make AP test suite green once again and speed up performance in layouts ↵José Valim2010-06-071-14/+2
| | | | lookup for some cases.
* Improve performance of the rendering stack by freezing formats as a sign ↵José Valim2010-03-191-15/+28
| | | | that they shouldn't be further modified.
* Move more normalization up to the lookup context, so it does not have to ↵José Valim2010-03-161-8/+8
| | | | repeat in every resolver.
* Make all AP tests pass for Ruby 1.9.1.José Valim2010-03-121-3/+1
|
* Add tests for lookup context.José Valim2010-03-111-0/+167