discourse/app/assets/javascripts/admin/routes/admin_flags_active_route.js.coffee
2013-02-07 16:45:24 +01:00

6 lines
245 B
CoffeeScript

Discourse.AdminFlagsActiveRoute = Discourse.Route.extend
model: -> Discourse.FlaggedPost.findAll('active')
setupController: (controller, model) ->
c = @controllerFor('adminFlags')
c.set('content', model)
c.set('query', 'active')