require 'scrivito/workspace' module Scrivito class Workspace # there are no conflicts. def conflict_warning_for(*args) [] end # there are no outdated workspaces def outdated? false end # fix silly assumptions def self.use(id_or_title) self.current = if id_or_title =~ /(published|rtc)/ find(id_or_title) else find_by_title(id_or_title) or raise ResourceNotFound, "Could not find #{self} with title #{id_or_title}" end end end end