module VestalVersions::Users::InstanceMethods

Methods added to versioned ActiveRecord::Base instances to enable versioning with additional user information.

Private Instance Methods

version_attributes_with_user() click to toggle source

Overrides the version_attributes method to include user information passed into the parent object, by way of a updated_by attr_accessor.

# File lib/vestal_versions/users.rb, line 22
def version_attributes_with_user
  version_attributes_without_user.merge(:user => updated_by)
end