You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
822 B
16 lines
822 B
class DoctrineJurisprudence < ApplicationRecord |
|
acts_as_list column: :rank, scope: %i[doctrine_id] |
|
|
|
belongs_to :doctrine, optional: false |
|
belongs_to :jurisprudence, class_name: "Cdao::Jurisprudence", optional: false |
|
|
|
searchable do |
|
integer :doctrine_id |
|
integer :jurisprudence_id |
|
|
|
join(:search_doc_date, :target => Cdao::Jurisprudence, :type => :date, :join => { :from => :id, :to => :jurisprudence_id }) |
|
join(:search_year, :target => Cdao::Jurisprudence, :type => :integer, :join => { :from => :id, :to => :jurisprudence_id }) |
|
join(:reference_number, :target => Cdao::Jurisprudence, :type => :string, :join => { :from => :id, :to => :jurisprudence_id }) |
|
join(:subject_ids, :target => Doctrine, :type => :integer, :multiple => true, :join => { :from => :id, :to => :doctrine_id }) |
|
end |
|
end
|
|
|