2014-07-03 07:48:28 +00:00
|
|
|
class BookAuthorType
|
|
|
|
include Mongoid::Document
|
|
|
|
include Mongoid::Timestamps
|
|
|
|
include Mongoid::Attributes::Dynamic
|
|
|
|
include OrbitCoreLib::ObjectDisable
|
|
|
|
|
|
|
|
field :key, type: String
|
|
|
|
field :title, type: String, localize: true
|
2014-07-03 14:34:44 +00:00
|
|
|
|
|
|
|
has_and_belongs_to_many :books
|
2014-07-03 07:48:28 +00:00
|
|
|
has_and_belongs_to_many :book_authors
|
|
|
|
end
|