summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-17 17:09:03 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-18 09:51:58 +0100
commit1f8a9b558d552925a176e1dd6ba6ef54fc2ee20a (patch)
tree4052308af3a436aa055c2c7c6c6775c2a41fd784 /app/helpers/application_helper.rb
parent6dd88474bed70c2aa70c7fdf7ba6dbdc29dc8998 (diff)
downloadgitlab-ce-1f8a9b558d552925a176e1dd6ba6ef54fc2ee20a.tar.gz
Added editable concern spec Snippet include Editable
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb4
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 ')