Class: Browser

Inherits:
ApplicationRecord show all
Includes:
RequiredUniqueName, Toggleable
Defined in:
app/models/browser.rb

Constant Summary collapse

PER_PAGE =
20
NAME_LIMIT =
250

Class Method Summary collapse

Class Method Details

.entity_parametersObject



19
20
21
# File 'app/models/browser.rb', line 19

def self.entity_parameters
  i(name mobile bot active)
end

.page_for_administration(page = 1) ⇒ Object



15
16
17
# File 'app/models/browser.rb', line 15

def self.page_for_administration(page = 1)
  ordered_by_name.page(page).per(PER_PAGE)
end