Skip to content

Commit

Permalink
chore: freeze RESERVED_OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
adzap committed Dec 31, 2024
1 parent 282e676 commit bf3dcb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validates_timeliness/validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Validator < ActiveModel::EachValidator

RESTRICTION_ERROR_MESSAGE = "Error occurred validating %s for %s restriction:\n%s"

RESERVED_OPTIONS = RESTRICTIONS.keys + RESTRICTIONS.keys.map { |option| :"#{option}_message" }
RESERVED_OPTIONS = (RESTRICTIONS.keys + RESTRICTIONS.keys.map { |option| :"#{option}_message" }).freeze

def self.kind
:timeliness
Expand Down

0 comments on commit bf3dcb9

Please sign in to comment.