Sha256: d39cbce7386affb8e9c0b0ddc1957cd3ef6d11a6a422971f77078658677ad226

Contents?: true

Size: 329 Bytes

Versions: 9

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

# Admin::Bookmark
module Admin
  class Bookmark < ApplicationRecord
    belongs_to :user, polymorphic: true
    belongs_to :document, polymorphic: true
    validates :user_id, presence: true

    def document_id
      document_id
    end

    def document_type
      Kithe::Model
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
geoblacklight_admin-0.5.0 app/models/admin/bookmark.rb
geoblacklight_admin-0.4.2 app/models/admin/bookmark.rb
geoblacklight_admin-0.4.1 app/models/admin/bookmark.rb
geoblacklight_admin-0.4.0 app/models/admin/bookmark.rb
geoblacklight_admin-0.3.2 app/models/admin/bookmark.rb
geoblacklight_admin-0.3.1 app/models/admin/bookmark.rb
geoblacklight_admin-0.3.0 app/models/admin/bookmark.rb
geoblacklight_admin-0.2.1 app/models/admin/bookmark.rb
geoblacklight_admin-0.1.0 app/models/admin/bookmark.rb