Skip to content

Instantly share code, notes, and snippets.

@richmolj
Last active December 18, 2015 19:19
Show Gist options
  • Save richmolj/5831948 to your computer and use it in GitHub Desktop.
Save richmolj/5831948 to your computer and use it in GitHub Desktop.
# Do this when PublishTime implements whacky logic
class Post
def publish
publish_time = PublishTime.new
self.published_at = publish_time.stamp
save
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment