Module: MultipleMan::Publisher::ClassMethods
- Defined in:
- lib/multiple_man/mixins/publisher.rb
Instance Method Summary collapse
Instance Method Details
#publish(options = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/multiple_man/mixins/publisher.rb', line 8 def publish( = {}) after_commit ModelPublisher.new(:create, ), on: :create after_commit ModelPublisher.new(:update, ), on: :update after_commit ModelPublisher.new(:destroy, ), on: :destroy end |