module

PlaceOS::Model::Utilities::Versions

Adds version history to a PlaceOS::Model

Constants

MAX_VERSIONS = (ENV["PLACE_MAX_VERSIONS"]?.try(&.to_i?) || 20)

Number of version models to retain

Instance methods

create_version(version : self) : self

Make relevant updates to version before it is saved

Source