Module: HasVersions::Record::ClassMethods
- Defined in:
- lib/has_versions/record.rb
Instance Method Summary collapse
Instance Method Details
#version_class ⇒ Object
26 27 28 |
# File 'lib/has_versions/record.rb', line 26 def version_class @version_class ||= version_class_name.constantize end |
#version_model ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/has_versions/record.rb', line 14 def version_model @version_model ||= begin version_class.class_eval do end version_class end end |
#versioning_configuration ⇒ Object
22 23 24 |
# File 'lib/has_versions/record.rb', line 22 def versioning_configuration @versioning_configuration ||= HasVersions::Record::Configuration.new end |