FEATURE: support "unlisted" badges.

This commit is contained in:
Sam
2014-07-03 17:44:16 +10:00
parent db34b534e6
commit 6bbb083d47
6 changed files with 13 additions and 3 deletions

View File

@ -2,7 +2,7 @@ class BadgesController < ApplicationController
skip_before_filter :check_xhr, only: [:index, :show]
def index
badges = Badge.all.to_a
badges = Badge.where(listable: true).all.to_a
serialized = MultiJson.dump(serialize_data(badges, BadgeSerializer, root: "badges"))
respond_to do |format|
format.html do