Permalink
Browse files

Don't use deprecated stuff.

  • Loading branch information...
josevalim committed Jun 21, 2011
1 parent 9324b54 commit 36123b92ee9dd39676238ba537e3b4668feb8206
Showing with 2 additions and 3 deletions.
  1. +2 −3 actionpack/lib/sprockets/helpers/rails_helper.rb
@@ -1,12 +1,11 @@
-require "action_view/helpers/asset_paths"
require "action_view/helpers/asset_tag_helper"
module Sprockets
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

0 comments on commit 36123b9

Please sign in to comment.