1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Make sure that Sprockets::Helpers::RailsHelper can be found

This commit is contained in:
wycats 2011-05-23 17:26:13 -07:00
parent 8e7590c72c
commit 9dabbd0cff
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
module Sprockets
module Helpers
autoload :RailsHelper, "sprockets/helpers/rails_helper"
end
end

View file

@ -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)