module Fragmentary::Publisher::InstanceMethods

Private Instance Methods

after_commit_broadcast() click to toggle source
# File lib/fragmentary/publisher.rb, line 43
def after_commit_broadcast
end
after_create_broadcast() click to toggle source
# File lib/fragmentary/publisher.rb, line 29
def after_create_broadcast
  Rails.logger.info "\n***** #{start = Time.now} broadcasting :after_create from #{self.class.name} #{self.id}\n"
  broadcast(:after_create, self)
  Rails.logger.info "\n***** #{Time.now} broadcast :after_create from #{self.class.name} #{self.id} took #{(Time.now - start) * 1000} ms\n"
end
after_destroy_broadcast() click to toggle source
# File lib/fragmentary/publisher.rb, line 39
def after_destroy_broadcast
  broadcast(:after_destroy, self)
end
after_update_broadcast() click to toggle source
# File lib/fragmentary/publisher.rb, line 35
def after_update_broadcast
  broadcast(:after_update, self) if self.previous_changes.any?
end
class_registrations() click to toggle source
# File lib/fragmentary/publisher.rb, line 25
def class_registrations
  self.class.registrations
end
registrations() click to toggle source
# File lib/fragmentary/publisher.rb, line 21
def registrations
  local_registrations + class_registrations + global_registrations + temporary_registrations
end