Fix hidden status

This commit is contained in:
manson 2014-07-03 19:30:55 +08:00
parent dd9bc683ba
commit b351e858c7
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class PersonalConferencesController < ApplicationController
def index
writing_conferences = WritingConference.all
writing_conferences = WritingConference.where(:is_hidden=>false).all
writing_conference_list = writing_conferences.collect do |writing_conference|
{
"year" => writing_conference.year,
@ -22,7 +22,7 @@ class PersonalConferencesController < ApplicationController
def show
params = OrbitHelper.params
writing_conference = WritingConference.find_by(uid: params[:uid])
writing_conference = WritingConference.where(:is_hidden=>false).find_by(uid: params[:uid])
files = writing_conference.writing_conference_files.map do |file|
{