From 45a1c01930f6343ba2c36f69377698d06245bf29 Mon Sep 17 00:00:00 2001 From: James Garcia Date: Thu, 21 Jun 2018 13:55:05 -0400 Subject: [PATCH] Updated this class --- app/models/book.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/book.rb b/app/models/book.rb index 438031b..cf1e96b 100644 --- a/app/models/book.rb +++ b/app/models/book.rb @@ -1,6 +1,6 @@ class Book < ApplicationRecord validates :title, presence: true - #validates :year_published, numericality: { only_integer: true } + validates :year_published, numericality: { only_integer: true } def old? return false unless year_published