Sha256: 181921d0623d6e51ec626ddd682cdb6bbae6eedbaf59b42d025f3088e963f7c6
Contents?: true
Size: 689 Bytes
Versions: 2
Compression:
Stored size: 689 Bytes
Contents
module TiesHelper def suggestion_brief(subject) "18 contacts in common" end def suggestion_link(subject, relations) relation = relations[subject.class.to_s.underscore.to_sym] # relation = relations[:user] raise "Relation not provided for #{ subject.class.to_s.underscore }" if relation.blank? link_to t("tie.suggestion.#{ relation }.new"), new_tie_path("tie[sender_id]" => current_user.actor.id, "tie[receiver_id]" => subject.actor.id, "tie[relation_name]" => relation), :class => 'boxy', :title => t("tie.suggestion.#{ relation }.confirm_new", :name => subject.name) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
social_stream-0.0.4 | app/helpers/ties_helper.rb |
social_stream-0.0.3 | app/helpers/ties_helper.rb |