Sha256: 2c06acfdf1cca3f9a252e20c7ba000650cffaf661e1387d2a9dbc4e33e0eb000

Contents?: true

Size: 254 Bytes

Versions: 2

Compression:

Stored size: 254 Bytes

Contents

# -*- encoding : utf-8 -*-
class Bookmark < ActiveRecord::Base
  
  belongs_to :user
  validates_presence_of :user_id, :scope=>:document_id
  attr_accessible :id, :document_id, :title


  def document
    SolrDocument.new :id => document_id
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-3.6.0 app/models/bookmark.rb
blacklight-3.5.0 app/models/bookmark.rb