Class: Bookmark
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Bookmark
- Defined in:
- app/models/bookmark.rb
Instance Method Summary collapse
Instance Method Details
#default_document_type ⇒ Object
23 24 25 |
# File 'app/models/bookmark.rb', line 23 def default_document_type SolrDocument end |
#document ⇒ Object
13 14 15 |
# File 'app/models/bookmark.rb', line 13 def document document_type.new document_type.unique_key => document_id end |
#document_type ⇒ Object
17 18 19 20 21 |
# File 'app/models/bookmark.rb', line 17 def document_type value = super if defined?(super) value &&= value.constantize value ||= default_document_type end |