Sha256: 1dd5a6d6e036ea2673cfe7c41051e0b7e51ff46945ff44d871377f9dbcbc0a17

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

module TrackChanges
   module Changes #:nodoc:

    protected

    def track_changes_get_changes
      @__model_changes = self.changes
    end

    def track_changes_save_audit
      return unless self.id

      user = current_user || TrackChanges::Configuration::get_default_user
      Audit.create_changes(self, @__model_changes, current_user)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
track_changes-1.0.0 lib/track_changes/changes.rb