This commit is contained in:
BoHung Chiu 2022-10-22 16:23:42 +08:00
parent 1aebaa47c0
commit 779d49f128
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class AnnouncementsController < ApplicationController
page = @page || Page.where(url: params['url']).first
@enable_search_flag = false
@image_version = 'thumb'
if page.methods.include? 'select_option_items'.to_sym
if page.respond_to?(:select_option_items)
ModuleApp.all.select{|tmp| tmp.key.to_s=='announcement'}.each do |modile_app|
@show_option_items = modile_app.show_option_items rescue nil
end