Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/book.rb')
-rw-r--r--app/models/book.rb2
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