Skip to content

Commit a514b3f

Browse files
committed
fix: linter issue fix
1 parent b8f25bf commit a514b3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/custom_link.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ class CustomLink < ApplicationRecord
22
belongs_to :casa_org
33
# Validate that the URL is present, has a valid format, and is unique
44
validates :url, presence: true,
5-
format: { with: /\A#{URI::DEFAULT_PARSER.make_regexp(%w[http https])}\z/, message: 'must be a valid URL' }
5+
format: {with: /\A#{URI::DEFAULT_PARSER.make_regexp(%w[http https])}\z/, message: "must be a valid URL"}
66
# Validate that the title is present and has a maximum length of 255 characters
7-
validates :text, presence: true, length: { maximum: 255 }
7+
validates :text, presence: true, length: {maximum: 255}
88

99
scope :active, -> { where(active: true) }
1010
end

0 commit comments

Comments
 (0)