7 changed files with 67 additions and 2 deletions
@ -0,0 +1,8 @@
|
||||
class Cdao::CitationFinder < Cdao::Base |
||||
self.table_name = "citation_finders" |
||||
|
||||
TYPES = %w[SCRA PhilRep].freeze |
||||
|
||||
belongs_to :jurisprudence, class_name: "Cdao::Jurisprudence", optional: false |
||||
delegate :title, :content, :ponente, :syllabus, :reference_number, :docdate, to: :jurisprudence |
||||
end |
||||
@ -1,3 +1,3 @@
|
||||
json.array!(@doctrines) do |doctrine| |
||||
json.extract! doctrine, *%i[id content subject_ids created_at updated_at] |
||||
json.extract! doctrine, *%i[id subject_ids content plain_content created_at updated_at] |
||||
end |
||||
|
||||
Loading…
Reference in new issue