From 339ddf5204efb9757f97a9bfa0ca2ff730453941 Mon Sep 17 00:00:00 2001 From: Yuki Date: Tue, 9 Jun 2015 08:54:17 +0530 Subject: [PATCH] I woke up 2 minutes ago --- app/helpers/application_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a5712889..55860384 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -43,12 +43,12 @@ module ApplicationHelper content_tag(:span, body, {title: tooltip_content, "data-toggle" => "tooltip", "data-placement" => placement} ) end - def time_tooltip(subject, placement = "bottom") { + def time_tooltip(subject, placement = "bottom") tooltip time_ago_in_words(subject.created_at), localize(subject.created_at), placement - } + end def timestamp_tooltip(subject, placement = "bottom") - t = timestamp_tooltip(subject, placement) + t = timestamp_tooltip subject, placement unless subject.user.nil? or (subject.respond_to?(:author_is_anonymous) and subject.author_is_anonymous) t = content_tag(:a, t, {href: show_user_question_path(subject.user.screen_name, subject.id)}) end