Module: HowAreWeDoing::ActsAsTotalable::ClassMethods

Defined in:
lib/how_are_we_doing/acts_as_totalable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_totalableObject



9
10
11
12
13
14
# File 'lib/how_are_we_doing/acts_as_totalable.rb', line 9

def acts_as_totalable
  has_many :totals, :as => :totalable, :dependent => :nullify

  include HowAreWeDoing::ActsAsTotalable::InstanceMethods
  extend  HowAreWeDoing::ActsAsTotalable::SingletonMethods
end