Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't use deprecated stuff.

  • Loading branch information...
commit 36123b92ee9dd39676238ba537e3b4668feb8206 1 parent 9324b54
@josevalim josevalim authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 actionpack/lib/sprockets/helpers/rails_helper.rb
View
5 actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -1,4 +1,3 @@
-require "action_view/helpers/asset_paths"
require "action_view/helpers/asset_tag_helper"
module Sprockets
@@ -6,7 +5,7 @@ module Helpers
module RailsHelper
extend ActiveSupport::Concern
include ActionView::Helpers::AssetTagHelper
-
+
def asset_paths
@asset_paths ||= begin
config = self.config if respond_to?(:config)
@@ -71,7 +70,7 @@ def asset_path(source, default_ext = nil, body = false)
body ? "#{path}?body=1" : path
end
- class AssetPaths < ActionView::Helpers::AssetPaths #:nodoc:
+ class AssetPaths < ::ActionView::AssetPaths #:nodoc:
def compute_public_path(source, dir, ext=nil, include_host=true)
super(source, 'assets', ext, include_host)
end
Please sign in to comment.
Something went wrong with that request. Please try again.