Class: Calibre::AbstractBook
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Calibre::AbstractBook
- Defined in:
- lib/calibre/book.rb
Overview
We do this to prevent AR to fail miserably because the foreign key name is the same as the class
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#cover ⇒ Object
29 30 31 |
# File 'lib/calibre/book.rb', line 29 def cover File.join(path, 'cover.jpg') end |
#cover? ⇒ Boolean
33 34 35 |
# File 'lib/calibre/book.rb', line 33 def cover? has_cover == 1 end |