Module: FlexibleFeeds::ActsAsEventable::InstanceMethods
- Defined in:
- lib/flexible_feeds/acts_as_eventable.rb
Instance Method Summary collapse
Instance Method Details
#default_custom_feeds ⇒ Object
45 46 47 |
# File 'lib/flexible_feeds/acts_as_eventable.rb', line 45 def default_custom_feeds [] end |
#post_to_feeds(*destinations) ⇒ Object
34 35 36 37 38 39 |
# File 'lib/flexible_feeds/acts_as_eventable.rb', line 34 def post_to_feeds(*destinations) destinations = destinations[0] if destinations[0].kind_of?(Array) self.class.transaction do create_event_for(destinations) end end |
#touch_event ⇒ Object
41 42 43 |
# File 'lib/flexible_feeds/acts_as_eventable.rb', line 41 def touch_event event.touch end |