import Ember from 'ember';

export default Ember.Component.extend({
  tagName: 'a',
  classNames: 'github-edit',
  attributeBindings: ['href', 'title'],

  routing: Ember.inject.service('-routing'),
  href: Ember.computed('routing.currentPath', function() {
    let path = this.get('routing.currentPath').replace(/\./g, '/');
    return `https://github.com/machty/ember-concurrency/edit/master/tests/dummy/app/${path}/template.hbs`;
  }),
  title: "Edit on Github",
});


@@ -297,16 +297,140 @@
 ntPath')
+;%0A    if (!path) %7B%0A      // %60routing%60 doesn't exist for old ember versions via ember-try%0A      return;%0A    %7D%0A    path = path
 .replace

handle old embers without a routing service