diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-17 17:09:03 +0100 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-05-18 09:51:58 +0100 |
commit | 1f8a9b558d552925a176e1dd6ba6ef54fc2ee20a (patch) | |
tree | 4052308af3a436aa055c2c7c6c6775c2a41fd784 /app/helpers/application_helper.rb | |
parent | 6dd88474bed70c2aa70c7fdf7ba6dbdc29dc8998 (diff) | |
download | gitlab-ce-1f8a9b558d552925a176e1dd6ba6ef54fc2ee20a.tar.gz |
Added editable concernfix-realtime-edited-text-for-issues
Added editable concern spec
Snippet include Editable
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 16734fe4c75..8c74d36ad81 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -2,8 +2,6 @@ require 'digest/md5' require 'uri' module ApplicationHelper - include EditableHelper - # Check if a particular controller is the current one # # args - One or more controller names to check @@ -183,7 +181,7 @@ module ApplicationHelper end def edited_time_ago_with_tooltip(object, placement: 'top', html_class: 'time_ago', exclude_author: false) - return unless is_edited?(object) + return unless object.is_edited? content_tag :small, class: 'edited-text' do output = content_tag(:span, 'Edited ') |