Skip to content

Instantly share code, notes, and snippets.

@SeanRoberts
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SeanRoberts/0de7b8d97382deee6892 to your computer and use it in GitHub Desktop.
Save SeanRoberts/0de7b8d97382deee6892 to your computer and use it in GitHub Desktop.
# Consider the following model
# This will not actually save history for the description.
class Event
has_history
tenon_content :description
end
# However, making it save the description is real easy:
class Event
has_history includes: [:description_tenon_content_rows]
tenon_content :description
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment