orbit-4-2/app/helpers/default_index_helper.rb

11 lines
333 B
Ruby
Raw Normal View History

module DefaultIndexHelper
def show_title_at_index(object)
if object.class.instance_methods.include?(:is_checked?) && object.bulletin.is_checked?
link_to bulletin.title, panel_announcement_front_end_bulletin_path(bulletin, :category_id => bulletin.category.id) rescue ''
else
bulletin.title
end
end
end