Module: HowAreWeDoing::ActsAsViewable::ClassMethods

Defined in:
lib/how_are_we_doing/acts_as_viewable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_viewableObject



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

def acts_as_viewable
  has_many :views, :as => :viewable, :dependent => :nullify

  include HowAreWeDoing::ActsAsViewable::InstanceMethods
  extend  HowAreWeDoing::ActsAsViewable::SingletonMethods
end