FIX: Double slash with finder for admin routes

This commit is contained in:
Robin Ward 2015-03-27 12:02:05 -04:00
parent cb14ab7a14
commit 88c4250df7
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ export default Ember.Object.extend({
pathFor(store, type, findArgs) {
let path = "/" + Ember.String.underscore(store.pluralize(type));
if (ADMIN_MODELS.indexOf(type) !== -1) { path = "/admin/" + path; }
if (ADMIN_MODELS.indexOf(type) !== -1) { path = "/admin" + path; }
if (findArgs) {
if (typeof findArgs === "object") {