FIX: use 'freeze' method again to fix 'cant modify frozen string' error

8d5c900142
This commit is contained in:
Vinoth Kannan 2019-04-10 18:30:59 +05:30
parent 536b90e0ef
commit b0600e52b6

View File

@ -1,4 +1,3 @@
# frozen_string_literal: true
require_dependency 'pretty_text'
require_dependency 'rate_limiter'
require_dependency 'post_revisor'
@ -61,10 +60,10 @@ class Post < ActiveRecord::Base
# We can pass several creating options to a post via attributes
attr_accessor :image_sizes, :quoted_post_numbers, :no_bump, :invalidate_oneboxes, :cooking_options, :skip_unique_check, :skip_validation
LARGE_IMAGES ||= "large_images"
BROKEN_IMAGES ||= "broken_images"
DOWNLOADED_IMAGES ||= "downloaded_images"
MISSING_UPLOADS ||= "missing uploads"
LARGE_IMAGES ||= "large_images".freeze
BROKEN_IMAGES ||= "broken_images".freeze
DOWNLOADED_IMAGES ||= "downloaded_images".freeze
MISSING_UPLOADS ||= "missing uploads".freeze
SHORT_POST_CHARS ||= 1200