Module: Crier::ActMethod

Defined in:
lib/crier/acts_as_crier.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_crier(options = {}) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/crier/acts_as_crier.rb', line 3

def acts_as_crier(options = {})
  has_many :listenings, :class_name => 'Crier::Listening', :dependent => :delete_all
  has_many :private_notifications, :class_name => 'Crier::Notification', :source => :notification, :through => :listenings

  extend Crier::ClassMethods
  include Crier::InstanceMethods
end