mirror of
https://github.com/neocities/neocities.git
synced 2025-07-24 19:38:25 +02:00
default freeze string literals where present
This commit is contained in:
parent
19dadfd6d2
commit
0888c9e2df
10 changed files with 14 additions and 3 deletions
|
@ -1,8 +1,10 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'sanitize'
|
||||
|
||||
class SiteFile < Sequel::Model
|
||||
CLASSIFIER_LIMIT = 1_000_000.freeze
|
||||
CLASSIFIER_WORD_LIMIT = 25.freeze
|
||||
CLASSIFIER_LIMIT = 1_000_000
|
||||
CLASSIFIER_WORD_LIMIT = 25
|
||||
unrestrict_primary_key
|
||||
plugin :update_primary_key
|
||||
many_to_one :site
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue