Module: FlexibleFeeds::ActsAsEventable::InstanceMethods

Defined in:
lib/flexible_feeds/acts_as_eventable.rb

Instance Method Summary collapse

Instance Method Details

#default_custom_feedsObject



48
49
50
# File 'lib/flexible_feeds/acts_as_eventable.rb', line 48

def default_custom_feeds
  []
end

#post_to_feeds(*destinations) ⇒ Object



37
38
39
40
41
42
# File 'lib/flexible_feeds/acts_as_eventable.rb', line 37

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_eventObject



44
45
46
# File 'lib/flexible_feeds/acts_as_eventable.rb', line 44

def touch_event
  event.touch
end