Skip to content

Commit

Permalink
Fix no dictionary error (thoughtbot/shoulda-matchers#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
repent committed Oct 21, 2021
1 parent 677a8f6 commit 441cfce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# the list, *even if it doesn't appear as a singular in the document*.
# This is not critical though.
#
# Some people use plurals that they wouldn't use in singular, e.g. TORs
# Some (bad) people use plurals that they wouldn't use in singular, e.g. TORs
# (meaning terms of reference, rather than multiple sets of terms of
# reference). Here they should be listed as plural in the definitions.
#
Expand Down Expand Up @@ -61,7 +61,7 @@
class Document < ActiveRecord::Base
mount_uploader :file, FileUploader
has_many :acronyms
belongs_to :dictionary
belongs_to :dictionary, optional: true
validates :file, presence: true

CONTEXT = 60.freeze
Expand Down

0 comments on commit 441cfce

Please sign in to comment.