Sha256: 28260195d15eafce511c494fd86b5014a56f289f9170a0ac6ce5d0859041d2e2
Contents?: true
Size: 405 Bytes
Versions: 12
Compression:
Stored size: 405 Bytes
Contents
(function() { "use strict"; App.PostsIndexRoute = Ember.Route.extend({ afterModel: function(posts) { if (posts.get('length') > 0) { this.transitionTo('posts.show', posts.objectAt(0)); } }, renderTemplate: function() { this.render(); this.render('posts/_footer', { into: 'application', outlet: 'footer' }); } }); })();
Version data entries
12 entries across 12 versions & 1 rubygems