Module: HasVersions::Record
- Extended by:
- ActiveSupport::Autoload, ActiveSupport::Concern
- Defined in:
- lib/has_versions.rb,
lib/has_versions/record.rb,
lib/has_versions/record/reset.rb,
lib/has_versions/record/attributes.rb,
lib/has_versions/record/configuration.rb,
lib/has_versions/record/orm/cassandra_object.rb
Defined Under Namespace
Modules: Attributes, ClassMethods, Orm, Reset
Classes: Configuration
Instance Method Summary
collapse
Instance Method Details
#to_version ⇒ Object
35
36
37
38
39
40
41
|
# File 'lib/has_versions/record.rb', line 35
def to_version
self.class.version_model.new(
snapshot: versioned_attributes,
associated_versions: associated_versions,
target: self
)
end
|
#versioning_configuration ⇒ Object
31
32
33
|
# File 'lib/has_versions/record.rb', line 31
def versioning_configuration
self.class.versioning_configuration
end
|