aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view.rb
Commit message (Collapse)AuthorAgeFilesLines
* Updated copyright notices for 2013Andrew Nesbitt2012-12-311-1/+1
|
* Refactor AssetUrlHelper to make it friendly for plugins and extensionsJoshua Peek2012-10-121-1/+0
| | | | | | | | Add asset_path/url helper for a consolidated entry point Expose compute_asset_path as a public API Expose compute_asset_host as a public API Move RAILS_ASSET_ID to its own module, AssetIdHelper Removed AV::AssetPaths
* Sprockets-rails tests failDmitry Vorotilin2012-09-011-0/+1
| | | | | | | Method invalid_asset_host! was delegated to controller but sprockets compile assets in their own scope without controller. And if we set asset_host with second parameter it should raise error through invalid_asset_host!. But since controller is nil it cannot be reached.
* Add automatic template digests to all CacheHelper#cache calls (originally ↵David Heinemeier Hansson2012-08-291-0/+1
| | | | spiked in the cache_digests plugin) *DHH*
* Don't require action_dispatch in ActionView::UrlHelpersPiotr Sarnacki2012-08-281-0/+1
| | | | | | | | | | ActionDispatch::Routing::UrlFor was always required in UrlHelpers. This was changed by splitting previous implementation of UrlHelper into 2 modules: ActionView::Helpers::UrlHelper and ActionView::Routing::UrlHelper. The former one keeps only basic implementation of url_for. The latter adds features that allow to use routes and is only required when url_helpers or mounted_helpers are required.
* Move ActionController::RecordIdentifier to ActionViewPiotr Sarnacki2012-08-281-0/+1
| | | | | | | Since it's more about DOM classes and ids it belongs to Action View better. What's more, it's more convenient to make it part of Action View to follow the rule that Action Pack can depend on Action View, but not the other way round.
* Get rid of config.preload_frameworks in favor of config.eager_load_namespacesJosé Valim2012-08-211-1/+5
| | | | | | | The new option allows any Ruby namespace to be registered and set up for eager load. We are effectively exposing the structure existing in Rails since v3.0 for all developers in order to make their applications thread-safe and CoW friendly.
* defines a private require-hub active_support/railsXavier Noria2012-08-021-0/+1
| | | | | | | | This is a private place to put those AS features that are used by every component. Nowadays we cherry-pick individual files wherever they are used, but that it is not worth the effort for stuff that is going to be loaded for sure sooner or later, like blank?, autoload, concern, etc.
* TestCase does not need to be loaded when loading the frameworkAaron Patterson2012-06-151-1/+3
|
* Revert "AV::TestCase does not need to be loaded when eagerly loading the"Aaron Patterson2012-06-141-2/+1
| | | | This reverts commit f5e7cb84cd377feb1b60c5356ce02123e9c94380.
* AV::TestCase does not need to be loaded when eagerly loading theAaron Patterson2012-06-141-1/+2
| | | | framework
* Fix the buildSantiago Pastorino2012-05-221-1/+0
|
* require active_support/lazy_load_hooks where is neededSantiago Pastorino2012-05-221-0/+1
|
* Lazy load I18nSantiago Pastorino2012-05-111-2/+3
|
* Move require to where it's neededSantiago Pastorino2012-05-111-2/+0
|
* Remove ruby/shimSantiago Pastorino2012-05-111-1/+1
| | | | require 'action_view' is now much faster
* Merge pull request #4248 from andrew/2012Vijay Dev2011-12-311-1/+1
|\ | | | | Updated copyright notices for 2012
| * Updated copyright notices for 2012Andrew Nesbitt2011-12-311-1/+1
| |
* | Fixes for using action view template in isolation.José Valim2011-11-301-0/+1
| |
* | Rename AV::Helpers::AssetPaths to AV::AssetPaths to solve autoload mess.José Valim2011-06-211-0/+1
| |
* | Remove autoload for a couple of constants which don't exist anymorebrainopia2011-05-311-5/+0
|/
* Oops, missing autoload, closes #466José Valim2011-05-091-0/+1
|
* Tidy up pending TODOs after discussion with Mr. Gatoz (@wycats).José Valim2011-05-011-1/+0
|
* Remove view dependency from AV::Renderer.José Valim2011-05-011-0/+1
|
* More cleanup and moving responsibilities around.José Valim2011-05-011-1/+0
|
* Start abstracting the renderer.José Valim2011-05-011-1/+1
|
* Yo dawg, I heard you like streaming. So I put a fiber, inside a block, ↵José Valim2011-04-161-1/+11
| | | | inside a body, so you can stream.
* Initial work on fibered layout.José Valim2011-04-161-0/+1
|
* We're in 2011, let's update our licensePrem Sichanugrist2011-02-221-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* SReorganize autoloads slightly and move two files to lib/action_view root.José Valim2010-10-141-9/+6
|
* removing some load path tomfooleryAaron Patterson2010-10-111-3/+0
|
* fixing railties testsAaron Patterson2010-10-111-1/+0
|
* Do not allow templates coming from Fallback resolvers to store a virtual path.José Valim2010-10-101-0/+1
|
* Clean up the house before moving in the new furniture.José Valim2010-10-101-1/+7
| | | | This commit moves all the template rendering logic that was hanging around AV::Base to renderer objects.
* Cleaned up autoload definitions.Łukasz Strzałkowski2010-09-021-15/+20
| | | | | | Now it's more transparent, and readable Signed-off-by: José Valim <jose.valim@gmail.com>
* No need to delegate. Simply include the whole RecordIdentifier module.José Valim2010-07-211-0/+1
|
* Revert "Moved encoding work in progress to a feature branch."wycats2010-05-171-1/+5
| | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517.
* Moved encoding work in progress to a feature branch.Jeremy Kemper2010-05-161-5/+1
| | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c.
* Significantly improved internal encoding heuristics and support.wycats2010-05-161-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * Default Encoding.default_internal to UTF-8 * Eliminated the use of file-wide magic comments to coerce code evaluated inside the file * Read templates as BINARY, use default_external or template-wide magic comments inside the Template to set the initial encoding * This means that template handlers in Ruby 1.9 will receive Strings encoded in default_internal (UTF-8 by default) * Create a better Exception for encoding issues, and use it when the template source has bytes that are not compatible with the specified encoding * Allow template handlers to opt-into handling BINARY. If they do so, they need to do some of their own manual encoding work * Added a "Configuration Gotchas" section to the intro Rails Guide instructing users to use UTF-8 for everything * Use config.encoding= in Ruby 1.8, and raise if a value that is an invalid $KCODE value is used Also: * Fixed a few tests that were assert() rather than assert_equal() and were caught by Minitest requiring a String for the message * Fixed a test where an assert_select was misformed, also caught by Minitest being more restrictive * Fixed a test where a Rack response was returning a String rather than an Enumerable
* Initial work to improve the state of encodings for templateswycats2010-05-161-0/+2
|
* Eliminate an error from an implicit dependency on AV::Basewycats2010-03-191-1/+3
|
* Optimize and clean up how details key get expired.José Valim2010-03-101-0/+1
|
* Merge master.José Valim2010-03-081-7/+7
|\
| * Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook
* | Rename Template::Lookup to LookupContext.José Valim2010-03-081-0/+1
| |
* | More refactoring on the views side of rendering.José Valim2010-03-081-0/+1
|/
* Merge branch 'master' of git://github.com/rails/railsMikel Lindsaar2010-02-021-2/+1
|\
| * Deleted all references to ActionView::SafeBuffer in favor of ↵Santiago Pastorino2010-01-311-2/+0
| | | | | | | | | | | | ActiveSupport::SafeBuffer Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
| * action_view/safe_buffer is no longer validSantiago Pastorino2010-01-311-1/+0
| | | | | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
| * For performance reasons, you can no longer call html_safe! on Strings. ↵Yehuda Katz2010-01-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). * Additionally, instead of doing concat("</form>".html_safe), you can do safe_concat("</form>"), which will skip both the flag set, and the flag check. * For the first pass, I converted virtually all #html_safe!s to #html_safe, and the tests pass. A further optimization would be to try to use #safe_concat as much as possible, reducing the performance impact if we know up front that a String is safe.