Module: ActsAsSubscribable::Base

Defined in:
app/models/concerns/acts_as_subscribable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_subscribable(*options) ⇒ Object



7
8
9
10
11
12
# File 'app/models/concerns/acts_as_subscribable.rb', line 7

def acts_as_subscribable(*options)
  @acts_as_subscribable = options || []

  include ::ActsAsSubscribable
  (ActsAsSubscribable.descendants ||= []) << self
end