Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Include I18n fallbacks in :locale lookup context | Juan Barreneche | 2013-03-16 | 1 | -1/+7 |
| | |||||
* | Replace some global Hash usages with the new thread safe cache. | thedarkone | 2012-12-14 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | Summary of the changes: * Add thread_safe gem. * Use thread safe cache for digestor caching. * Replace manual synchronization with ThreadSafe::Cache in Relation::Delegation. * Replace @attribute_method_matchers_cache Hash with ThreadSafe::Cache. * Use TS::Cache to avoid the synchronisation overhead on listener retrieval. * Replace synchronisation with TS::Cache usage. * Use a preallocated array for performance/memory reasons. * Update the controllers cache to the new AS::Dependencies::ClassCache API. The original @controllers cache no longer makes much sense after @tenderlove's changes in 7b6bfe84f3 and f345e2380c. * Use TS::Cache in the connection pool to avoid locking overhead. * Use TS::Cache in ConnectionHandler. | ||||
* | use presence method instead of checking for blank | Nihad Abbasov | 2012-09-14 | 1 | -1/+1 |
| | |||||
* | Add ActionView::Base.default_formats | Piotr Sarnacki | 2012-08-28 | 1 | -1/+1 |
| | | | | | | | | 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. | ||||
* | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | Common behavior with adding formats to lookup_context for TemplateRenderer ↵ | Dmitry Vorotilin | 2012-07-18 | 1 | -2/+5 |
| | | | | and PartialRenderer | ||||
* | fix some accidental nils | Aaron Patterson | 2012-06-22 | 1 | -1/+1 |
| | |||||
* | format lookup for partials is derived from the format in which the template ↵ | Santiago Pastorino | 2012-02-22 | 1 | -11/+3 |
| | | | | | | is being rendered Closes #5025 part 2 | ||||
* | fix bad docs from f373f296 [ci skip] | Vijay Dev | 2012-02-21 | 1 | -3/+3 |
| | |||||
* | Bring back rendering templates that start with / in nested structures | Carlos Antonio da Silva | 2012-01-17 | 1 | -0/+1 |
| | |||||
* | Change more Array.wrap to Kernel#Array | Rafael Mendonça França | 2012-01-05 | 1 | -2/+1 |
| | |||||
* | Use Kernel#Array instead of Array.wrap in view_paths | Rafael Mendonça França | 2012-01-05 | 1 | -1/+1 |
| | |||||
* | Remove deprecation warnings from Action Pack. | José Valim | 2011-12-20 | 1 | -11/+1 |
| | |||||
* | Clean up details keys before some tests to expire the cache. | José Valim | 2011-12-14 | 1 | -0/+4 |
| | |||||
* | dup the details hash if a key has already been set for this object | Aaron Patterson | 2011-12-13 | 1 | -0/+1 |
| | |||||
* | locale and default_locale may be the same, so uniq the array | Aaron Patterson | 2011-12-13 | 1 | -1/+1 |
| | |||||
* | stop freezing the details hash | Aaron Patterson | 2011-12-13 | 1 | -2/+1 |
| | |||||
* | stop freezing hash value | Aaron Patterson | 2011-12-13 | 1 | -1/+1 |
| | |||||
* | Optimize layout lookup to avoid double calls. | José Valim | 2011-12-08 | 1 | -1/+0 |
| | |||||
* | Some small optimizations and improvements to benchmark code. | José Valim | 2011-12-08 | 1 | -9/+9 |
| | |||||
* | Deprecate passing the template handler in the template name. | José Valim | 2011-09-22 | 1 | -1/+6 |
| | | | | | | For example, calling hello.erb is now deprecated. Since Rails 3.0 passing the handler had no effect whatsover. This commit simply deprecates such cases so we can clean up the code in later releases. | ||||
* | Make handlers a registered detail. | José Valim | 2011-09-22 | 1 | -6/+3 |
| | |||||
* | Get rid of update_details in favor of passing details to find_template. | José Valim | 2011-09-22 | 1 | -29/+4 |
| | |||||
* | it is now possible to pass details options (:formats, :details, :locales, ↵ | Nick Sutterer | 2011-09-22 | 1 | -8/+16 |
| | | | | ...) to #render, #find_template and friends. this doesn't change anything in global context. | ||||
* | No need to recalculate the @details_key after update_details. | José Valim | 2011-09-22 | 1 | -3/+2 |
| | |||||
* | Slightly reorganize lookup context modules in order to better isolate cache ↵ | José Valim | 2011-09-21 | 1 | -100/+111 |
| | | | | responsibilities. | ||||
* | deprecating process_view_paths | Aaron Patterson | 2011-08-09 | 1 | -1/+1 |
| | |||||
* | Remove trailing white-spaces | Guillermo Iguaran | 2011-06-05 | 1 | -1/+1 |
| | |||||
* | Always expand */* | José Valim | 2011-05-07 | 1 | -7/+4 |
| | |||||
* | Fixes ticket #6379. Improved the handling of Accept headers containing */*. | mathieuravaux | 2011-05-07 | 1 | -4/+7 |
| | | | | | | | `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> | ||||
* | Also allow prefixes as third argument to lookup context. | José Valim | 2011-05-04 | 1 | -2/+2 |
| | |||||
* | initialize prefixes in LookupContext. | Nick Sutterer | 2011-05-04 | 1 | -0/+1 |
| | |||||
* | added :prefixes accessor to LookupContext. | Nick Sutterer | 2011-05-03 | 1 | -0/+2 |
| | |||||
* | Use Mime::Type references. | José Valim | 2011-02-08 | 1 | -2/+2 |
| | |||||
* | Solve SystemStackError when changing locale inside ActionMailer [#5329 ↵ | José Valim | 2011-01-19 | 1 | -2/+2 |
| | | | | state:resolved] | ||||
* | Final tidy up on templates inheritance. | José Valim | 2010-12-27 | 1 | -6/+7 |
| | |||||
* | all tests pass | artemave | 2010-12-26 | 1 | -1/+1 |
| | |||||
* | #948 template_inheritance | artemave | 2010-12-26 | 1 | -12/+19 |
| | |||||
* | Ensure resolvers backward compatibility. | José Valim | 2010-12-09 | 1 | -1/+1 |
| | |||||
* | Remove :cache => true on lookup templates initialization. | José Valim | 2010-10-14 | 1 | -1/+1 |
| | |||||
* | Do not allow templates coming from Fallback resolvers to store a virtual path. | José Valim | 2010-10-10 | 1 | -1/+1 |
| | |||||
* | Allow cache to be temporarily disabled through lookup_context. | José Valim | 2010-10-07 | 1 | -1/+12 |
| | |||||
* | Remove locals dependency from template. | José Valim | 2010-10-07 | 1 | -8/+8 |
| | | | | | | This means that templates does not need to store its source anymore, allowing us to reduce the ammount of memory taken by our Rails processes. Naively speaking, if your app/views contains 2MB of files, each of your processes (after being hit by a bunch of requests) will take 2MB less of memory after this commit. This is extremely important for the upcoming features. Since Rails will also render CSS and JS files, their source won't be stored as well allowing us to decrease the ammount of memory taken. | ||||
* | Added title to some other files in actionpack/lib/action_view | Rizwan Reza | 2010-06-16 | 1 | -0/+2 |
| | |||||
* | Fix case when rendering a partial inside RJS with inherited layout [#4786 ↵ | José Valim | 2010-06-07 | 1 | -1/+1 |
| | | | | state:resolved] | ||||
* | Make AP test suite green once again and speed up performance in layouts ↵ | José Valim | 2010-06-07 | 1 | -18/+33 |
| | | | | lookup for some cases. | ||||
* | Optimize LookupContext | wycats | 2010-06-04 | 1 | -10/+25 |
| | |||||
* | Fix ActionMailer test broken in 99d54599215c2a8cea7e57f609e8e578043d71b2 | José Valim | 2010-04-12 | 1 | -3/+10 |
| | |||||
* | Fixed that default locale templates should be used if the current locale ↵ | Carl Lerche | 2010-04-08 | 1 | -2/+2 |
| | | | | template is missing [DHH] | ||||
* | Ensure details are frozen after @details_keys lookup. The implementation ↵ | José Valim | 2010-03-27 | 1 | -4/+17 |
| | | | | waits to freeze until the last required moment, to avoid duping hashes. |