diff --git a/app/models/posting.rb b/app/models/posting.rb index a3d3985..c2329a4 100644 --- a/app/models/posting.rb +++ b/app/models/posting.rb @@ -11,6 +11,7 @@ def article_with_image return "#{figure_start}_#{figure_end}" if figure_start.nil? || figure_end.nil? image_tags = body[figure_start...figure_end + 9] + # Avoid using magic numbers. 9 should be a constant with explanatory name return 'not include