diff options
| author | Piotr Sarnacki <drogus@gmail.com> | 2012-08-28 11:24:29 +0200 |
|---|---|---|
| committer | Piotr Sarnacki <drogus@gmail.com> | 2012-08-28 11:24:29 +0200 |
| commit | 4f093d81aca814b7433c4a1366985327b4ad0708 (patch) | |
| tree | d8361811cbf1f5b3947c57cbe1be1016c2835b2d /actionpack/lib/action_controller/metal | |
| parent | 1ec1eb2ff2ad5de70db7a632b93641a06a623a42 (diff) | |
| parent | daa0ed3af2e6443e26d658282b8ed654b5a32926 (diff) | |
| download | rails-4f093d81aca814b7433c4a1366985327b4ad0708.tar.gz rails-4f093d81aca814b7433c4a1366985327b4ad0708.tar.bz2 rails-4f093d81aca814b7433c4a1366985327b4ad0708.zip | |
Merge branch 'actionview-decoupling'
This branch contains set of changes that will allow to extract Action
View out of Action Pack in the future. This work will be probably done
after Rails 4.0 release, because of a few deprecations that were done
to make decoupling possible.
Diffstat (limited to 'actionpack/lib/action_controller/metal')
| -rw-r--r-- | actionpack/lib/action_controller/metal/asset_paths.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/asset_paths.rb b/actionpack/lib/action_controller/metal/asset_paths.rb new file mode 100644 index 0000000000..3c1c95c042 --- /dev/null +++ b/actionpack/lib/action_controller/metal/asset_paths.rb @@ -0,0 +1,13 @@ +require 'action_controller/metal/exceptions' + +module ActionController + module AssetPaths + extend ActiveSupport::Concern + + include AbstractController::AssetPaths + + def invalid_asset_host!(help_message) + raise ActionController::RoutingError, "This asset host cannot be computed without a request in scope. #{help_message}" + end + end +end |
