Module: ActiveVersion::Adapters::ActiveRecord::Base::ClassMethods
- Defined in:
- lib/active_version/adapters/active_record/base.rb
Instance Method Summary collapse
-
#has_versioning?(version_type) ⇒ Boolean
Check if model has versioning enabled.
-
#version_class_for(version_type) ⇒ Object
Get version class for this model.
Instance Method Details
#has_versioning?(version_type) ⇒ Boolean
Check if model has versioning enabled
20 21 22 |
# File 'lib/active_version/adapters/active_record/base.rb', line 20 def has_versioning?(version_type) ActiveVersion.registry.registered?(self, version_type) end |
#version_class_for(version_type) ⇒ Object
Get version class for this model
25 26 27 |
# File 'lib/active_version/adapters/active_record/base.rb', line 25 def version_class_for(version_type) ActiveVersion.registry.version_class_for(self, version_type) end |