mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-07 07:26:20 +08:00
22 lines
532 B
Ruby
22 lines
532 B
Ruby
|
module Views
|
||
|
module Datatables
|
||
|
class SearchRepository < ApplicationRecord
|
||
|
belongs_to :repository
|
||
|
# def self.records(repository, search_value)
|
||
|
# # binding.pry
|
||
|
# # # where('repository_rows.repository_id', repository.id).to_a
|
||
|
# # where(repository_id: repository.id)
|
||
|
# # .where()
|
||
|
# end
|
||
|
|
||
|
private
|
||
|
|
||
|
# this isn't strictly necessary, but it will prevent
|
||
|
# rails from calling save, which would fail anyway.
|
||
|
def readonly?
|
||
|
true
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|