Created
May 11, 2015 18:07
-
-
Save sarogers/fcdaef9634212c896b31 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# NOTE: All model inheriting this method must implement a #publish! method. | |
module Publishable | |
def publish_to!(batch) | |
publish_parents!(batch) | |
publish_children!(batch) | |
end | |
def publish! | |
raise 'implement publish! on the inheriting class' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment