Thanks, Rick, for a great plugin. But one thgn leads to another, sort
of like pulling at the thread in the willy jumper ....
Three questions about acts_as_versioned; the second leads to other
1. use of :sequence_name
is this the "order_by"? How is this going to be different from
using the ':version_column' to order the
2. Derived from (1).
If I have a ':version_column' set and I want optimistic locking
as well, how do I do that?
3. I'm very unclear about using ':extend' or the "acts_as_versioned
do ... end" construct.
Obviously I want to be able to reference any revision of the Page and
any field or method:
page.revision(rev_no).title = "Hello World".reverse
page.revision(rev_no).updated_at.suc === page.updated_at
display = page.revision(rev_no).render_content_to_html
If I wasn't using acts_as_versioned and was doing this with an
explicit revision table
I'd be writing thigns like
class Page < ActiveRecord::Base
has_one :current_revision, :class_name => 'Revision', :order =>
but I'd really like to DRY and not have to have a separate Revision
Any input or examples would be appreciated.