Class: Kaui::CustomField

Inherits:
KillBillClient::Model::CustomField
  • Object
show all
Defined in:
app/models/kaui/custom_field.rb

Class Method Summary collapse

Class Method Details

.list_or_search(search_key = nil, offset = 0, limit = 10, options = {}) ⇒ Object


3
4
5
6
7
8
9
# File 'app/models/kaui/custom_field.rb', line 3

def self.list_or_search(search_key = nil, offset = 0, limit = 10, options = {})
  if search_key.present?
    find_in_batches_by_search_key(search_key, offset, limit, options)
  else
    find_in_batches(offset, limit, options)
  end
end