Module: Rumor::Source
- Defined in:
- lib/rumor/source.rb
Overview
Public: Include this module everywhere you want to be able to rumor. This gives you the benefit that the rumor method can easily be overrided.
Exampe:
class Controller
include Rumor::Rumoring
def rumor subject
super.on(current_user)
end
def upgrade
# some code
rumor(:upgraded).mention(plan: :basic).spread only: :kissmetrics
end
end
Instance Method Summary collapse
-
#rumor(event) ⇒ Object
Public: Acts as a specialized factory for rumors.