Skip to content

Commit

Permalink
AO3-6820: switch validaiton syntax to appease rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
lou-codes committed Jan 31, 2025
1 parent c8c28e4 commit 97fa3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/bookmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Bookmark < ApplicationRecord

belongs_to :bookmarkable, polymorphic: true, inverse_of: :bookmarks
belongs_to :pseud
validates_presence_of :pseud_id
validates :pseud_id, presence: true

validates_length_of :bookmarker_notes,
maximum: ArchiveConfig.NOTES_MAX, too_long: ts("must be less than %{max} letters long.", max: ArchiveConfig.NOTES_MAX)
Expand Down

0 comments on commit 97fa3e6

Please sign in to comment.