Module: Growth

Defined in:
lib/growth.rb,
lib/growth/engine.rb,
lib/growth/version.rb,
lib/growth/system/container.rb,
app/helpers/growth/application_helper.rb,
app/controllers/growth/stats_controller.rb,
lib/generators/growth/install_generator.rb,
app/controllers/growth/application_controller.rb,
lib/growth/operations/retention_report/prepare.rb,
lib/growth/operations/retention_report/generate.rb,
lib/growth/operations/retention_report/validate.rb,
lib/growth/transactions/generate_retention_report.rb

Defined Under Namespace

Modules: ApplicationHelper, Generators, Operations, System, Transactions Classes: ApplicationController, Engine, StatsController

Constant Summary collapse

VERSION =
'0.2.0'
@@model_blacklist =
[]

Class Method Summary collapse

Class Method Details

.models_to_measureObject


11
12
13
# File 'lib/growth.rb', line 11

def self.models_to_measure
  @@models_to_measure ||= ::ActiveRecord::Base.descendants.map(&:name) - ::ActiveRecord::Base.send(:subclasses).map(&:name)
end

.setupObject


15
16
17
# File 'lib/growth.rb', line 15

def self.setup
  yield if block_given?
end