Module: CreationReport

Defined in:
lib/creation_report.rb,
lib/creation_report/version.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

VERSION =
"0.0.9"

Class Method Summary collapse

Class Method Details

.append_features(base) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/creation_report.rb', line 10

def self.append_features(base)
  super
  if base.superclass == ActiveRecord::Base
    base.extend(ClassMethods)
  else
    raise "CreationReport can only be included in ActiveRecord subclasses."
  end
end