Skip to content

Commit 174831f

Browse files
mateusdeapJuanVqz
andauthored
Remove call to class name in scope
Co-authored-by: Juan Vásquez <[email protected]>
1 parent 227611c commit 174831f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/puzzle.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ class Puzzle < ApplicationRecord
33
enum :state, { approved: 0, rejected: 1, pending: 2, archived: 3 }
44
has_many :answers
55

6-
scope :archived, -> { Puzzle.where(state: :archived).order(sent_at: :desc) }
6+
scope :archived, -> { where(state: :archived).order(sent_at: :desc) }
77
end

0 commit comments

Comments
 (0)