ember-rails refactor