Sha256: 2bac5f07f5750c7d36491c68cc22d558a10be43cd2ba676071895f730adc3303

Contents?: true

Size: 350 Bytes

Versions: 3

Compression:

Stored size: 350 Bytes

Contents

module TrackChanges
   module Changes #:nodoc:

    protected

    def track_changes_get_changes
      @__model_changes = self.changes
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
track_changes-1.0.0.pre3 lib/track_changes/changes.rb
track_changes-1.0.0.pre2 lib/track_changes/changes.rb
track_changes-1.0.0.pre1 lib/track_changes/changes.rb