diff options
author | wycats <wycats@gmail.com> | 2011-05-23 17:26:13 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2011-05-23 17:27:57 -0700 |
commit | 9dabbd0cfff95364d7d9e582b2a69fca2342c2b2 (patch) | |
tree | ff5987e04689696eebd3fa7d4a20352a4691c8d4 /actionpack | |
parent | 8e7590c72c088e89d73d318d58e5bc3c058dea8f (diff) | |
download | rails-9dabbd0cfff95364d7d9e582b2a69fca2342c2b2.tar.gz rails-9dabbd0cfff95364d7d9e582b2a69fca2342c2b2.tar.bz2 rails-9dabbd0cfff95364d7d9e582b2a69fca2342c2b2.zip |
Make sure that Sprockets::Helpers::RailsHelper can be found
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/sprockets/helpers.rb | 5 | ||||
-rw-r--r-- | actionpack/lib/sprockets/railtie.rb | 4 |
2 files changed, 8 insertions, 1 deletions
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) |