Orbit/app/helpers/default_index_helper.rb

11 lines
342 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.bulletin_category.id) rescue ''
else
bulletin.title
end
end
end