Acts_as_Version is there a way to skip a versioning from occurring on save?

305 Views Asked by At

Using rails acts_as_versioned, is there a way to skip a versioning event from happening, and just allowing a regular save?

2

There are 2 best solutions below

1
On BEST ANSWER

It looks like you could do either of these:

@post = Post.find(params[:id])
# assign some stuff to your post
@post.save_without_revision

or

@post = Post.find(params[:id])
@post.without_revision do
  @post.update_attributes(params[:post])
end
0
On

if i remember correcly

record.save_without_revision

should do the trick