This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/helpers/default_index_helper.rb

11 lines
333 B
Ruby
Raw Permalink 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