app/models/georgia/clone.rb in georgia-0.7.8 vs app/models/georgia/clone.rb in georgia-0.8.0

- old
+ new

@@ -11,10 +11,12 @@ # Returns an exact persisted version of itself with all Georgia::Page associations # The resulting instance has a '(Copy)' title and '-copy' slug def copy copy_page - duplicate.current_revision = clone_current_revision + revision = Georgia::CloneRevision.new(instance.current_revision, status: 'draft') + revision.revisionable = duplicate + duplicate.current_revision = revision alter_slug alter_title duplicate.save! duplicate end \ No newline at end of file