aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-10-05 15:41:28 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2011-10-05 15:41:28 -0200
commitfd8f0b297822ba36002084faa36bd0320d3be4a7 (patch)
tree666f3febd45b80d4babe236c28c31eebc525200f /actionpack/lib/sprockets
parentc495bfc127405f7ead0d1c275c4d75682a51e00e (diff)
downloadrails-fd8f0b297822ba36002084faa36bd0320d3be4a7.tar.gz
rails-fd8f0b297822ba36002084faa36bd0320d3be4a7.tar.bz2
rails-fd8f0b297822ba36002084faa36bd0320d3be4a7.zip
stylesheet_link_tag('/stylesheets/application') and similar helpers doesn't throw Sprockets::FileOutsidePaths exception anymore
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r--actionpack/lib/sprockets/helpers/rails_helper.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb
index f866bc626e..ddf9b08b54 100644
--- a/actionpack/lib/sprockets/helpers/rails_helper.rb
+++ b/actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -123,6 +123,8 @@ module Sprockets
return nil if is_uri?(source)
source = rewrite_extension(source, nil, ext)
asset_environment[source]
+ rescue Sprockets::FileOutsidePaths
+ nil
end
def digest_for(logical_path)