Module: OriginRelationshipsHelper

Defined in:
app/helpers/origin_relationships_helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) origin_relationship_autocomplete_selected_tag(origin_relationship)



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


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

- (Object) origin_relationship_tag(origin_relationship)



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

- (Object) origin_relationships_search_form



11
12
13
# File 'app/helpers/origin_relationships_helper.rb', line 11

def origin_relationships_search_form
  render('/origin_relationships/quick_search_form')
end