discourse/app/controllers/badges_controller.rb
2014-04-16 18:42:06 +05:30

6 lines
160 B
Ruby

class BadgesController < ApplicationController
def index
badges = Badge.all.to_a
render_serialized(badges, BadgeSerializer, root: "badges")
end
end