Sha256: 59dc4be9e5f214c28025011c1b77e8188740b814cfab777f57c62e5097df2bc1

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

module Social2social 
  module Models 
    module UpdateTriggerable
      extend ActiveSupport::Concern
      
      included do
        after_create :update_feed_to_hub
      end
      
      module InstanceMethods
        def update_feed_to_hub
          if self.original
            self.tie.sender.publish_or_update_home_feed
          end
        end
      end
      
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
social2social-0.0.4 lib/social2social/models/updatetriggerable.rb
social2social-0.0.3 lib/social2social/models/updatetriggerable.rb
social2social-0.0.2 lib/social2social/models/updatetriggerable.rb
social2social-0.0.1 lib/social2social/models/updatetriggerable.rb