Module: Chronicle::Models::Generation

Included in:
Chronicle::Models
Defined in:
lib/chronicle/models/generation.rb

Defined Under Namespace

Modules: ClassMethods

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.benchmark_enabledObject

Returns the value of attribute benchmark_enabled.



12
13
14
# File 'lib/chronicle/models/generation.rb', line 12

def benchmark_enabled
  @benchmark_enabled
end

.models_generatedObject

Returns the value of attribute models_generated.



12
13
14
# File 'lib/chronicle/models/generation.rb', line 12

def models_generated
  @models_generated
end

Class Method Details

.included(base) ⇒ Object



15
16
17
18
# File 'lib/chronicle/models/generation.rb', line 15

def self.included(base)
  base.extend ClassMethods
  base.generate_models unless base.models_generated?
end

.resetObject



80
81
82
# File 'lib/chronicle/models/generation.rb', line 80

def self.reset
  Chronicle::Models::Generation.models_generated = false
end

.suppress_model_generationObject



84
85
86
# File 'lib/chronicle/models/generation.rb', line 84

def self.suppress_model_generation
  Chronicle::Models::Generation.models_generated = true
end