diff options
Diffstat (limited to 'app/models/book.rb')
-rw-r--r-- | app/models/book.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/book.rb b/app/models/book.rb index 260a58f0..884e304c 100644 --- a/app/models/book.rb +++ b/app/models/book.rb @@ -43,7 +43,7 @@ class Book < ApplicationRecord @@all_books end - def has_edition(number) + def edition?(number) Book.where(edition: number, code: code).count > 0 end end |