diff --git a/lib/freedom_patches/better_handlebars_errors.rb b/lib/freedom_patches/better_handlebars_errors.rb deleted file mode 100644 index a11eb271200..00000000000 --- a/lib/freedom_patches/better_handlebars_errors.rb +++ /dev/null @@ -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