Thynkon / MAW2.1-KeepIt-Back

MIT License
0 stars 0 forks source link

Typo in /app/models/user_votes_book.rb #11

Closed SemicolonManifest closed 1 year ago

SemicolonManifest commented 1 year ago

Ther is a typo in /app/models/user_votes_book.rb

The class variable @@downvote is written @@donwvote.

    @@donwvote = -1
    @@upvote = 1

    validates :vote, presence: true, inclusion: { in: [@@donwvote, @@upvote] }