Skip to content

Commit

Permalink
Refs #22: check year int
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBrendel committed Nov 3, 2017
1 parent d194427 commit a55d48c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/paper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
class Paper < ActiveRecord::Base
validates :title, :venue, :year, presence: true
validates :year, numericality: { only_integer: true }
end

0 comments on commit a55d48c

Please sign in to comment.