Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Commit b06212f

Browse files
committed
typo in validation
1 parent f7c6845 commit b06212f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/rating.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ class Rating < ApplicationRecord
22
belongs_to :user
33
belongs_to :film
44

5-
validates_inclusion_of :number, in: 0..5
5+
validates_inclusion_of :rating, in: 0..5
66
end

0 commit comments

Comments
 (0)