lib/ember/handlebars/template.rb in ember-rails-lite-0.9.2 vs lib/ember/handlebars/template.rb in ember-rails-lite-0.11.1

- old
+ new

@@ -75,14 +75,14 @@ def template_path(path) root = configuration.templates_root if root.kind_of? Array root.each do |root| - path.gsub!(/^#{Regexp.quote(root)}\//, '') + path.sub!(/#{Regexp.quote(root)}\//, '') end else unless root.empty? - path.gsub!(/^#{Regexp.quote(root)}\/?/, '') + path.sub!(/#{Regexp.quote(root)}\/?/, '') end end path = path.split('/')