Fix hidden status
This commit is contained in:
parent
27e16e1d9d
commit
9b17011668
|
@ -1,6 +1,6 @@
|
||||||
class PersonalExperiencesController < ApplicationController
|
class PersonalExperiencesController < ApplicationController
|
||||||
def index
|
def index
|
||||||
experiences = Experience.all
|
experiences = Experience.where(:is_hidden=>false).all
|
||||||
experience_list = experiences.collect do |experience|
|
experience_list = experiences.collect do |experience|
|
||||||
{
|
{
|
||||||
"member" => experience.member_profile.name,
|
"member" => experience.member_profile.name,
|
||||||
|
@ -27,7 +27,7 @@ class PersonalExperiencesController < ApplicationController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
params = OrbitHelper.params
|
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,
|
"organizationt_title" => experience.organizationt_title,
|
||||||
|
|
Loading…
Reference in New Issue