From 9dabbd0cfff95364d7d9e582b2a69fca2342c2b2 Mon Sep 17 00:00:00 2001 From: wycats Date: Mon, 23 May 2011 17:26:13 -0700 Subject: Make sure that Sprockets::Helpers::RailsHelper can be found --- actionpack/lib/sprockets/helpers.rb | 5 +++++ actionpack/lib/sprockets/railtie.rb | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 actionpack/lib/sprockets/helpers.rb (limited to 'actionpack/lib/sprockets') diff --git a/actionpack/lib/sprockets/helpers.rb b/actionpack/lib/sprockets/helpers.rb new file mode 100644 index 0000000000..a952a55c5e --- /dev/null +++ b/actionpack/lib/sprockets/helpers.rb @@ -0,0 +1,5 @@ +module Sprockets + module Helpers + autoload :RailsHelper, "sprockets/helpers/rails_helper" + end +end diff --git a/actionpack/lib/sprockets/railtie.rb b/actionpack/lib/sprockets/railtie.rb index 43ebf529e9..da5cb320a6 100644 --- a/actionpack/lib/sprockets/railtie.rb +++ b/actionpack/lib/sprockets/railtie.rb @@ -1,5 +1,7 @@ module Sprockets - class Railtie < Rails::Railtie + autoload :Helpers, "sprockets/helpers" + + class Railtie < ::Rails::Railtie def self.using_coffee? require 'coffee-script' defined?(CoffeeScript) -- cgit v1.2.3