Sha256: 1f379a5363cbb8843141e0b4c28e5715717b15bd1c9389d9ec049e4f8346bb7c
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
module LinkHelper def link_to_object(object, name, html_options = nil, &block) path = case object when Iqvoc::Concept.base_class concept_url(id: object) when Iqvoc::Collection.base_class collection_url(id: object) when Label::Base label_url(id: object) end link_to name, path, html_options, &block end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iqvoc-4.13.2 | app/helpers/link_helper.rb |