Skip to content

Commit

Permalink
Updated this class
Browse files Browse the repository at this point in the history
  • Loading branch information
colossus9 authored Jun 21, 2018
1 parent a7c9b0c commit 45a1c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/book.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 45a1c01

Please sign in to comment.