lib/scrivito/revision.rb in scrivito_sdk-0.30.0 vs lib/scrivito/revision.rb in scrivito_sdk-0.40.0.rc1

- old
+ new

@@ -1,9 +1,13 @@ module Scrivito -class Revision < Struct.new(:id, :content_state, :workspace) +class Revision < Struct.new(:id, :content_state, :workspace, :base) def initialize(options) - super(*options.values_at(:id, :content_state, :workspace)) + super(*options.values_at(:id, :content_state, :workspace, :base)) + end + + def base? + !!base end end end