Fix hidden status

This commit is contained in:
manson 2014-07-03 19:31:50 +08:00
parent 27e16e1d9d
commit 9b17011668
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
class PersonalExperiencesController < ApplicationController
def index
experiences = Experience.all
experiences = Experience.where(:is_hidden=>false).all
experience_list = experiences.collect do |experience|
{
"member" => experience.member_profile.name,
@ -27,7 +27,7 @@ class PersonalExperiencesController < ApplicationController
def show
params = OrbitHelper.params
experience = Experience.find_by(uid: params[:uid])
experience = Experience.where(:is_hidden=>false).find_by(uid: params[:uid])
{
"organizationt_title" => experience.organizationt_title,