ruby - Rails vestal_versions gem create versions without saving parent -


I'm interested in using vestal_versions gem in my rail app, but I'm wondering if anyone knows that anyone The way I can create a new version but can not actually update the associated ActiveRecord. For example, if I have a user with the first name "jim", and I want to be able to continue the version without a new version of "Steve", I change the original record until I Revert_to! (Newer_version) or something like this)

If it is not made gem, any clue where should I start the bar?

After checking the behavior of this gem, I found that it is nothing like that In fact to really have been established.

You can force this behavior with something:

  def create_version merge_version_changes create_version end   

a 'variant' model With the changes that have been modified in your Live ActiveRecord without any parent object tables:

  blah = blah.first blah.version < / Code>  

will tell you that you are using the latest version, but do not load that data (since it never changes Receives). If you use:

  blah.revert_to (: last)   

This will not change your records because it thinks that you already have the latest Using the version. Etc. ..

To reduce a long story, vestal_versions do not intend to behave like this, and it should not be expected. I'm just checking the hasdrafts gem because it looks like what I'm going to do.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -