Module: LinkHelper
- Defined in:
- app/helpers/link_helper.rb
Instance Method Summary collapse
Instance Method Details
#link_to_object(object, name, html_options = nil, &block) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/helpers/link_helper.rb', line 2 def link_to_object(object, name, = nil, &block) path = case object when Iqvoc::Concept.base_class concept_path(id: object) when Iqvoc::Collection.base_class collection_path(id: object) when Label::Base label_path(id: object) end link_to name, path, , &block end |