From 7d1141ee60aab26d6d2096bb28580ece81ca7be5 Mon Sep 17 00:00:00 2001 From: Spen Date: Tue, 5 Nov 2013 11:23:37 +0800 Subject: [PATCH] fix new ui archive and link frontend --- vendor/built_in_modules/archive/app/models/archive_file.rb | 2 ++ vendor/built_in_modules/web_resource/app/models/web_link.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/vendor/built_in_modules/archive/app/models/archive_file.rb b/vendor/built_in_modules/archive/app/models/archive_file.rb index 3e2600bc1..387cec705 100644 --- a/vendor/built_in_modules/archive/app/models/archive_file.rb +++ b/vendor/built_in_modules/archive/app/models/archive_file.rb @@ -20,6 +20,8 @@ class ArchiveFile field :title, localize: true field :create_user_id field :update_user_id, :class_name => "User" + + scope :can_display,where(is_hidden: false) # belongs_to :archive_file_category diff --git a/vendor/built_in_modules/web_resource/app/models/web_link.rb b/vendor/built_in_modules/web_resource/app/models/web_link.rb index 213e7d025..c0b95ea89 100644 --- a/vendor/built_in_modules/web_resource/app/models/web_link.rb +++ b/vendor/built_in_modules/web_resource/app/models/web_link.rb @@ -18,6 +18,8 @@ class WebLink field :create_user_id field :update_user_id, :class_name => "User" + scope :can_display,where(is_hidden: false) + # belongs_to :web_link_category before_save :clean_tags