-
-
Save ignaciojonas/39901d721f5bf0b860a604369a225590 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Style < ApplicationRecord | |
after_create_commit {broadcast_prepend_to "styles"} | |
after_update_commit {broadcast_replace_to "styles"} | |
after_destroy_commit {broadcast_remove_to "styles"} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment