Class: Workarea::Configuration::Admin

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Encrypted, ApplicationDocument
Defined in:
app/models/workarea/configuration/admin.rb

Class Method Summary collapse

Methods included from ApplicationDocument

#releasable?

Methods included from Sidekiq::Callbacks

add_worker, assert_valid_config!, async, caching_classes?, disable, enable, inline, #run_callbacks, workers, workers_list

Methods included from Mongoid::Document

#embedded_children

Class Method Details

.definitionObject



13
14
15
# File 'app/models/workarea/configuration/admin.rb', line 13

def self.definition
  Workarea.config.admin_definition
end

.instanceObject



9
10
11
# File 'app/models/workarea/configuration/admin.rb', line 9

def self.instance
  first || create
end