Sha256: 01137ea4fc713a0183f99b63d7ad03d063c8ca473501a674d0fa8b90145f8a04
Contents?: true
Size: 331 Bytes
Versions: 9
Compression:
Stored size: 331 Bytes
Contents
class Post < ApplicationRecord belongs_to :customer include PubSubModelSync::SubscriberConcern ps_subscribe(%i[create update destroy], %i[title user_id:customer_id]) after_create { log "Post created: #{inspect}" } after_update { log "Post updated: #{inspect}" } after_destroy { log "Post Destroyed: #{inspect}" } end
Version data entries
9 entries across 9 versions & 1 rubygems