Module: HasVersions::Record::Attributes
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/has_versions/record/attributes.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#associated_versions ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/has_versions/record/attributes.rb', line 24 def associated_versions if versioning_configuration.associated_versions_callback instance_eval(&versioning_configuration.associated_versions_callback).compact else nil end end |
#versioned_attributes ⇒ Object
12 13 14 15 16 |
# File 'lib/has_versions/record/attributes.rb', line 12 def versioned_attributes create_versioned_attributes do |attribute| send(attribute) end end |
#versioned_attributes_was ⇒ Object
18 19 20 21 22 |
# File 'lib/has_versions/record/attributes.rb', line 18 def versioned_attributes_was create_versioned_attributes do |attribute| send("#{attribute}_was") end end |