DEV: Remove unused Ember::Handlebars freedom patch (#24688)

We no longer compile Ember templates in ruby, so this is unused
This commit is contained in:
David Taylor 2023-12-04 12:40:08 +00:00 committed by GitHub
parent cdb904a1b0
commit c2887d3f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +0,0 @@
# frozen_string_literal: true
module Ember
module Handlebars
class Template
# Wrap in an IIFE in development mode to get the correct filename
def compile_ember_handlebars(string, ember_template = "Handlebars", options = nil)
if ::Rails.env.development?
"(function() { try { return Ember.#{ember_template}.compile(#{indent(string).inspect}); } catch(err) { throw err; } })()"
else
"Ember.#{ember_template}.compile(#{indent(string).inspect}, #{options.to_json});"
end
end
end
end
end