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:
parent
8e7590c72c
commit
9dabbd0cff
2 changed files with 8 additions and 1 deletions
5
actionpack/lib/sprockets/helpers.rb
Normal file
5
actionpack/lib/sprockets/helpers.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module Sprockets
|
||||
module Helpers
|
||||
autoload :RailsHelper, "sprockets/helpers/rails_helper"
|
||||
end
|
||||
end
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue