We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4090834 commit 558f24bCopy full SHA for 558f24b
app/models/protip.rb
@@ -954,7 +954,11 @@ def matching_jobs
954
def to_html
955
CFM::Markdown.render self.body
956
end
957
-
+
958
+ def slug_format
959
+ "#{public_id}-#{title}"
960
+ end
961
962
protected
963
def check_links
964
errors[:body] << "one or more of the links are invalid or not publicly reachable/require login" unless valid_links?
@@ -973,9 +977,6 @@ def analyze_spam
973
977
AnalyzeSpamJob.perform_async({ id: id, klass: self.class.name })
974
978
975
979
976
- def slug_format
- "#{public_id}-#{title}"
- end
980
981
982
# == Schema Information
0 commit comments