Module: OriginRelationshipsHelper
- Defined in:
- app/helpers/origin_relationships_helper.rb
Instance Method Summary collapse
- #origin_relationship_autocomplete_selected_tag(origin_relationship) ⇒ Object
- #origin_relationship_link(origin_relationship) ⇒ Object
- #origin_relationship_tag(origin_relationship) ⇒ Object
- #origin_relationships_search_form ⇒ Object
Instance Method Details
#origin_relationship_autocomplete_selected_tag(origin_relationship) ⇒ Object
7 8 9 |
# File 'app/helpers/origin_relationships_helper.rb', line 7 def origin_relationship_autocomplete_selected_tag(origin_relationship) origin_relationship_tag(origin_relationship) end |
#origin_relationship_link(origin_relationship) ⇒ Object
15 16 17 18 |
# File 'app/helpers/origin_relationships_helper.rb', line 15 def origin_relationship_link(origin_relationship) return nil if origin_relationship.nil? link_to(origin_relationship_tag(origin_relationship).html_safe, origin_relationship) end |
#origin_relationship_tag(origin_relationship) ⇒ Object
2 3 4 5 |
# File 'app/helpers/origin_relationships_helper.rb', line 2 def origin_relationship_tag(origin_relationship) return nil if origin_relationship.nil? "#{object_tag(origin_relationship.old_object)}: #{object_tag(origin_relationship.new_object)}" end |
#origin_relationships_search_form ⇒ Object
11 12 13 |
# File 'app/helpers/origin_relationships_helper.rb', line 11 def origin_relationships_search_form render('/origin_relationships/quick_search_form') end |