aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/lookup_context.rb
Commit message (Collapse)AuthorAgeFilesLines
* Include I18n fallbacks in :locale lookup contextJuan Barreneche2013-03-161-1/+7
|
* Replace some global Hash usages with the new thread safe cache.thedarkone2012-12-141-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 blankNihad Abbasov2012-09-141-1/+1
|
* Add ActionView::Base.default_formatsPiotr Sarnacki2012-08-281-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/railsXavier Noria2012-08-021-1/+0
|
* Common behavior with adding formats to lookup_context for TemplateRenderer ↵Dmitry Vorotilin2012-07-181-2/+5
| | | | and PartialRenderer
* fix some accidental nilsAaron Patterson2012-06-221-1/+1
|
* format lookup for partials is derived from the format in which the template ↵Santiago Pastorino2012-02-221-11/+3
| | | | | | is being rendered Closes #5025 part 2
* fix bad docs from f373f296 [ci skip]Vijay Dev2012-02-211-3/+3
|
* Bring back rendering templates that start with / in nested structuresCarlos Antonio da Silva2012-01-171-0/+1
|
* Change more Array.wrap to Kernel#ArrayRafael Mendonça França2012-01-051-2/+1
|
* Use Kernel#Array instead of Array.wrap in view_pathsRafael Mendonça França2012-01-051-1/+1
|
* Remove deprecation warnings from Action Pack.José Valim2011-12-201-11/+1
|
* Clean up details keys before some tests to expire the cache.José Valim2011-12-141-0/+4
|
* dup the details hash if a key has already been set for this objectAaron Patterson2011-12-131-0/+1
|
* locale and default_locale may be the same, so uniq the arrayAaron Patterson2011-12-131-1/+1
|
* stop freezing the details hashAaron Patterson2011-12-131-2/+1
|
* stop freezing hash valueAaron Patterson2011-12-131-1/+1
|
* Optimize layout lookup to avoid double calls.José Valim2011-12-081-1/+0
|
* Some small optimizations and improvements to benchmark code.José Valim2011-12-081-9/+9
|
* Deprecate passing the template handler in the template name.José Valim2011-09-221-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é Valim2011-09-221-6/+3
|
* Get rid of update_details in favor of passing details to find_template.José Valim2011-09-221-29/+4
|
* it is now possible to pass details options (:formats, :details, :locales, ↵Nick Sutterer2011-09-221-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é Valim2011-09-221-3/+2
|
* Slightly reorganize lookup context modules in order to better isolate cache ↵José Valim2011-09-211-100/+111
| | | | responsibilities.
* deprecating process_view_pathsAaron Patterson2011-08-091-1/+1
|
* Remove trailing white-spacesGuillermo Iguaran2011-06-051-1/+1
|
* Always expand */*José Valim2011-05-071-7/+4
|
* Fixes ticket #6379. Improved the handling of Accept headers containing */*.mathieuravaux2011-05-071-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é Valim2011-05-041-2/+2
|
* initialize prefixes in LookupContext.Nick Sutterer2011-05-041-0/+1
|
* added :prefixes accessor to LookupContext.Nick Sutterer2011-05-031-0/+2
|
* Use Mime::Type references.José Valim2011-02-081-2/+2
|
* Solve SystemStackError when changing locale inside ActionMailer [#5329 ↵José Valim2011-01-191-2/+2
| | | | state:resolved]
* Final tidy up on templates inheritance.José Valim2010-12-271-6/+7
|
* all tests passartemave2010-12-261-1/+1
|
* #948 template_inheritanceartemave2010-12-261-12/+19
|
* Ensure resolvers backward compatibility.José Valim2010-12-091-1/+1
|
* Remove :cache => true on lookup templates initialization.José Valim2010-10-141-1/+1
|
* Do not allow templates coming from Fallback resolvers to store a virtual path.José Valim2010-10-101-1/+1
|
* Allow cache to be temporarily disabled through lookup_context.José Valim2010-10-071-1/+12
|
* Remove locals dependency from template.José Valim2010-10-071-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_viewRizwan Reza2010-06-161-0/+2
|
* Fix case when rendering a partial inside RJS with inherited layout [#4786 ↵José Valim2010-06-071-1/+1
| | | | state:resolved]
* Make AP test suite green once again and speed up performance in layouts ↵José Valim2010-06-071-18/+33
| | | | lookup for some cases.
* Optimize LookupContextwycats2010-06-041-10/+25
|
* Fix ActionMailer test broken in 99d54599215c2a8cea7e57f609e8e578043d71b2José Valim2010-04-121-3/+10
|
* Fixed that default locale templates should be used if the current locale ↵Carl Lerche2010-04-081-2/+2
| | | | template is missing [DHH]
* Ensure details are frozen after @details_keys lookup. The implementation ↵José Valim2010-03-271-4/+17
| | | | waits to freeze until the last required moment, to avoid duping hashes.