mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
This reverts commit ec7efbde1a689c051fbcfd2713e6908c5d29e25b. This is causing problems in non-ember-cli environments. Reverting for now.
This commit is contained in:
@ -1,12 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# One of the initializers in `discourse-ember-rails/lib/ember_rails.rb` tries to set
|
||||
# the ember template compiler path based on a call to `Sprockets::Environment#resolve`
|
||||
# which started returning an array in Sprockets 4.
|
||||
# This doesn't seem to be needed - it was setting to the existing value, so we can just ignore it.
|
||||
Ember::Handlebars::Template.singleton_class.prepend(Module.new do
|
||||
def setup_ember_template_compiler(path)
|
||||
return if path.is_a? Array
|
||||
super
|
||||
end
|
||||
end)
|
Reference in New Issue
Block a user