Module: HowAreWeDoing::ActsAsShareable::ClassMethods

Defined in:
lib/how_are_we_doing/acts_as_shareable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_shareableObject



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

def acts_as_shareable
  has_many :shares, :as => :shareable, :dependent => :nullify
  
  include HowAreWeDoing::ActsAsShareable::InstanceMethods
  extend  HowAreWeDoing::ActsAsShareable::SingletonMethods
end