1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

12 commits

Author SHA1 Message Date
Piotr Sarnacki
445f14e975 Fix asset_path in mounted engine
Historically serving assets from a mountable engine could be achieved by
running ActionDispatch::Static as a part of engine middleware stack or
to copy assets prefixed with an engine name. After introduction of
assets pipeline this is not needed as all of the assets are served or
compiled into main application's assets.

This commit removes the obsolete line making asset_path always generate
paths relative to the root or config.relative_url_root if it's set.

(closes #8119)
2013-01-21 21:21:39 +01:00
Alvaro Pereyra
e166f02b17 Removes :nodoc: label [ci skip] 2012-12-01 12:57:15 -05:00
Joshua Peek
c4276ddf38 Ignore asset url query string or anchor when appending extensions and computing public path 2012-10-15 13:30:24 -05:00
Joshua Peek
6601917ad9 Extract compute_asset_extname and allow extname to be disabled 2012-10-15 10:57:32 -05:00
Joshua Peek
511382bfdd merge! default asset tag options 2012-10-15 09:41:34 -05:00
Joshua Peek
e6451a5599 Just check request instead of controller.request 2012-10-15 09:40:08 -05:00
Joshua Peek
60a4fffd83 Allow asset url config to be undefined 2012-10-13 10:13:47 -05:00
Joshua Peek
aa493f04d3 All asset url helpers should pass options 2012-10-12 17:28:53 -05:00
Joshua Peek
c3cff4d421 Ensure AssetUrlHelper can be mixed into AC::Base 2012-10-12 17:07:17 -05:00
Joshua Peek
1e2b0ce95e Refactor AssetUrlHelper to make it friendly for plugins and extensions
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
2012-10-12 16:56:00 -05:00
Joshua Peek
bd38d9f211 Add asset_path and asset_url helpers 2012-10-12 14:57:38 -05:00
Joshua Peek
9fa1a541a1 Split asset url helpers into seperate AssetUrlHelper 2012-10-12 13:46:24 -05:00