mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 13:17:20 -05:00
render :json appears to have changed ... this is odd ... better add some tests
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
/**
|
||||
Handles routes related to customization
|
||||
|
||||
@class AdminCustomizeRoute
|
||||
@class AdminCustomizeRoute
|
||||
@extends Discourse.Route
|
||||
@namespace Discourse
|
||||
@module Discourse
|
||||
**/
|
||||
**/
|
||||
Discourse.AdminCustomizeRoute = Discourse.Route.extend({
|
||||
model: function() {
|
||||
return Discourse.SiteCustomization.findAll();
|
||||
|
||||
renderTemplate: function() {
|
||||
this.render({into: 'admin/templates/admin'});
|
||||
},
|
||||
|
||||
renderTemplate: function() {
|
||||
this.render({into: 'admin/templates/admin'});
|
||||
setupController: function(controller, model) {
|
||||
// in case you are wondering, model never gets called for link_to
|
||||
controller.set('content',Discourse.SiteCustomization.findAll());
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user