Permalink
Browse files

Support applications without a router

  • Loading branch information...
wagenet committed Oct 8, 2012
1 parent c26ef4f commit 945cd4a5a4f0851d9729385225ecd356f7f05ca5
Showing with 1 addition and 0 deletions.
  1. +1 −0 packages/ember-application/lib/system/application.js
@@ -501,6 +501,7 @@ Ember.Application.reopenClass({
Ember.Application.registerInjection({
name: 'controllers',
injection: function(app, router, property) {
if (!router) { return; }
if (!/^[A-Z].*Controller$/.test(property)) { return; }
var name = property.charAt(0).toLowerCase() + property.substr(1),

1 comment on commit 945cd4a

@ppcano

This comment has been minimized.

Show comment
Hide comment
@ppcano

ppcano Oct 14, 2012

Contributor

@wagenet, this is a great because it allow us to migrate our Single App from 0.9.8.1 ember version. I realized that we still need to import the "ember-routing" package even though we are not using ember-routing. Shouldn't some logic be moved from ember-application to ember-routing?

Contributor

ppcano commented on 945cd4a Oct 14, 2012

@wagenet, this is a great because it allow us to migrate our Single App from 0.9.8.1 ember version. I realized that we still need to import the "ember-routing" package even though we are not using ember-routing. Shouldn't some logic be moved from ember-application to ember-routing?

Please sign in to comment.