Remove unused helper functions

This commit is contained in:
Steffen van Bergerem 2016-07-08 20:35:25 +02:00
parent b296e73c36
commit be90b4fef3
No known key found for this signature in database
GPG key ID: 2F08F75F9525C7E0
2 changed files with 0 additions and 19 deletions

View file

@ -1,11 +1,4 @@
module ContactsHelper
def contact_aspect_dropdown(contact)
render :partial => 'people/relationship_action',
:locals => { :person => contact.person,
:contact => contact,
:current_user => current_user }
end
def start_a_conversation_link(aspect, contacts_size)
conv_opts = { class: "conversation_button contacts_button"}

View file

@ -7,16 +7,4 @@ module GettingStartedHelper
def has_completed_getting_started?
current_user.getting_started == false
end
def tag_link(tag_name)
if tag_followed?(tag_name)
link_to "##{tag_name}", tag_followings_path(tag_name), :method => :delete, :class => "featured_tag followed"
else
link_to "##{tag_name}", tag_tag_followings_path(tag_name), :method => :post, :class => "featured_tag"
end
end
def tag_followed?(tag_name)
tags.detect{|t| t.name == tag_name}
end
end