diff options
author | schneems <richard.schneeman@gmail.com> | 2016-06-15 11:05:04 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2016-08-29 13:16:07 -0500 |
commit | 5de741c4cd4528fd86cae1091cdea984449cc926 (patch) | |
tree | d7f1740a0258af7436131015a228a9fe963114d1 /actionpack/MIT-LICENSE | |
parent | 3fc414a019526e5584867b032a188adf15c71eac (diff) | |
download | rails-5de741c4cd4528fd86cae1091cdea984449cc926.tar.gz rails-5de741c4cd4528fd86cae1091cdea984449cc926.tar.bz2 rails-5de741c4cd4528fd86cae1091cdea984449cc926.zip |
Allow a more explicit public behavior
We want to make it more explicit when a user wants to avoid the asset pipeline to do this we will add `public_*` methods to all path helpers. So if someone wants to use an asset that isn't maintained by the asset pipeline they can use `public_asset_path` instead of `asset_path` and letting it fall through.
The main reason for this change is the desire to raise helpful errors in the future. Right now if you typo an asset name, then we assume you intended an asset in the `public/` folder and not in the pipeline so nothing fails and the error sits silently until you realize the page didn't render correctly. We have to deprecate today so we can raise meaningful error messages in the future.
Diffstat (limited to 'actionpack/MIT-LICENSE')
0 files changed, 0 insertions, 0 deletions