Skip to content

Commit

Permalink
Make #escape_markdown a class method
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Jul 18, 2018
1 parent 9213e1a commit 892b1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/smoke_detectors_helper.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module SmokeDetectorsHelper
def escape_markdown(s)
def self.escape_markdown(s)
%w{[ ] * _ `}.each do |token|
s = s.gsub token, '\\' + token
end
Expand Down

0 comments on commit 892b1c8

Please sign in to comment.