aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/asset_paths.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3237 from sakuro/data-url-schemeRafael Mendonça França2012-05-131-1/+1
| | | | | | | Support data: url scheme Conflicts: actionpack/lib/action_view/asset_paths.rb
* Compute asset paths from the request if ENV["RAILS_RELATIVE_URL_ROOT"] is ↵Dwayne Litzenberger2012-03-051-1/+1
| | | | | | | | | not set. This should fix the following issue: "Rails is not a Rack Application (SCRIPT_NAME vs. relative_url_root ?)" https://github.com/rails/rails/issues/910
* Extract asset paths uri regexp to a constantCarlos Antonio da Silva2012-01-121-1/+3
| | | | Avoid compiling the regexp all the time.
* Handle correctly optional parameters for callable asset_host.Marc-Andre Lafortune2011-11-291-2/+2
|
* Fix the lame config.action_controller.present? check scattered throughout ↵José Valim2011-10-051-13/+3
| | | | | | | | assets_path. Conflicts: actionpack/test/template/sprockets_helper_test.rb
* Ensure default_asset_host_protocol is respected, closes #2980.José Valim2011-10-051-4/+1
|
* Allow asset tag helper methods to accept :digest => false option in order to ↵Santiago Pastorino2011-09-141-4/+5
| | | | completely avoid the digest generation.
* Fix asset_path relative_url_root methodSantiago Pastorino2011-09-131-3/+5
|
* always rewrite_relative_url_rootSantiago Pastorino2011-09-131-1/+1
|
* Remove odd asignationGuillermo Iguaran2011-09-121-1/+0
|
* if ... nil? is more expensive than unlessMilan Dobrota2011-09-041-1/+1
|
* TODO fix explicitly loading exceptations, autoload removedVishnu Atrai2011-07-111-0/+1
|
* use Zlib.crc2 rather that bytes.sum, as per Aaron's suggestionXavier Noria2011-07-081-2/+2
| | | | | | That integer is rather irrelevant, the only thing that matters is that it is consistent and with no apparent bias. Zlib.crc32 is 8-10 times faster than bytes.sum, so use that.
* Using the sum of bytes instead the hash of the path when replacing the ↵Albert Callarisa Roca2011-07-081-1/+2
| | | | wildcard of the assets path because in ruby 1.9 is not consistent
* Added a configuration setting:Chris Eppstein2011-06-271-4/+14
| | | | | | | | | | | | | | | | | | | | | | config.action_controller.default_asset_host_protocol It's best to leave this unset. When unset the :request protocol is used whenever it can be and :relative is used in the other situations. When set to :request then assets hosts will be disabled when there is no request in scope and will use the request protocol whenever a request is in scope. If set to :relative, then a relative protocol is always used except for stylesheet link tags which must use the :request protocol to avoid double downloads in IE6&7. Conflicts: actionpack/lib/sprockets/helpers/rails_helper.rb actionpack/test/template/sprockets_helper_test.rb
* Move the config bootstrapping to initialization to minimize access to the ↵Chris Eppstein2011-06-271-10/+7
| | | | Rails.application global.
* Stylesheet link tags should use the request protocol to avoid duplicate ↵Chris Eppstein2011-06-271-5/+32
| | | | | | | | | download of stylesheets in IE7 and IE8. Conflicts: actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb actionpack/lib/sprockets/helpers/rails_helper.rb
* Add asset_url helper and refactor the asset paths so that asset hosts can be ↵Chris Eppstein2011-06-271-20/+52
| | | | | | | | | | used during asset precompilation. Conflicts: actionpack/lib/action_view/asset_paths.rb actionpack/lib/sprockets/helpers/rails_helper.rb actionpack/test/template/sprockets_helper_test.rb
* Rename AV::Helpers::AssetPaths to AV::AssetPaths to solve autoload mess.José Valim2011-06-211-0/+79