Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add ActionView::Base.default_formats | Piotr Sarnacki | 2012-08-28 | 1 | -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 #6404 | Tom Clarke | 2012-05-21 | 1 | -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é Valim | 2012-05-21 | 1 | -4/+4 |
| | | | | | This reverts commit 254c04286c5916ae7f91eb6e173b312e7a74e364, reversing changes made to 513a0525c24c2944630acfa465b22cd2f4601adf. | ||||
* | Make the Resolver template cache threadsafe - closes #6404 | Tom Clarke | 2012-05-21 | 1 | -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 Pastorino | 2012-02-22 | 1 | -2/+2 |
| | | | | | | is being rendered Closes #5025 part 2 | ||||
* | Clean up details keys before some tests to expire the cache. | José Valim | 2011-12-14 | 1 | -7/+1 |
| | |||||
* | Get rid of update_details in favor of passing details to find_template. | José Valim | 2011-09-22 | 1 | -10/+0 |
| | |||||
* | Merge pull request #420 from burke/master | José Valim | 2011-05-08 | 1 | -0/+9 |
|\ | | | | | Accept single prefix in ActionView::MissingTemplate#initialize | ||||
| * | Added a test for MissingTemplate change, and changed to use Array.wrap() as | Burke Libbey | 2011-05-06 | 1 | -0/+9 |
| | | | | | | | | requested by josevalim. | ||||
* | | Always expand */* | José Valim | 2011-05-07 | 1 | -1/+1 |
| | | |||||
* | | Fixes ticket #6379. Improved the handling of Accept headers containing */*. | mathieuravaux | 2011-05-07 | 1 | -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 Sutterer | 2011-05-04 | 1 | -1/+1 |
| | |||||
* | added :prefixes accessor to LookupContext. | Nick Sutterer | 2011-05-03 | 1 | -0/+6 |
| | |||||
* | Buffer should be an option passed down to template rendering. | José Valim | 2011-04-16 | 1 | -25/+0 |
| | |||||
* | Use Mime::Type references. | José Valim | 2011-02-08 | 1 | -1/+1 |
| | |||||
* | Solve SystemStackError when changing locale inside ActionMailer [#5329 ↵ | José Valim | 2011-01-19 | 1 | -1/+1 |
| | | | | state:resolved] | ||||
* | Don't be so picky on MissingTemplate error details, this fails randomly on ↵ | Piotr Sarnacki | 2010-12-31 | 1 | -4/+3 |
| | | | | 1.8.7 because of not ordered hash | ||||
* | added tests for the MissingTemplate exception message. | Nick Sutterer | 2010-12-31 | 1 | -0/+21 |
| | |||||
* | all tests pass | artemave | 2010-12-26 | 1 | -24/+24 |
| | |||||
* | Allow template handlers to store temp data. | José Valim | 2010-11-24 | 1 | -2/+27 |
| | |||||
* | Remove :cache => true on lookup templates initialization. | José Valim | 2010-10-14 | 1 | -4/+0 |
| | |||||
* | Do not allow templates coming from Fallback resolvers to store a virtual path. | José Valim | 2010-10-10 | 1 | -2/+2 |
| | |||||
* | Resolvers now consider timestamps. | José Valim | 2010-10-10 | 1 | -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é Valim | 2010-10-07 | 1 | -0/+21 |
| | |||||
* | Make AP test suite green once again and speed up performance in layouts ↵ | José Valim | 2010-06-07 | 1 | -14/+2 |
| | | | | lookup for some cases. | ||||
* | Improve performance of the rendering stack by freezing formats as a sign ↵ | José Valim | 2010-03-19 | 1 | -15/+28 |
| | | | | that they shouldn't be further modified. | ||||
* | Move more normalization up to the lookup context, so it does not have to ↵ | José Valim | 2010-03-16 | 1 | -8/+8 |
| | | | | repeat in every resolver. | ||||
* | Make all AP tests pass for Ruby 1.9.1. | José Valim | 2010-03-12 | 1 | -3/+1 |
| | |||||
* | Add tests for lookup context. | José Valim | 2010-03-11 | 1 | -0/+167 |