Sha256: cf4483eb540891092f0d337d3a14a39df9c1ae4111bffe45680415aeb9cb7e70

Contents?: true

Size: 212 Bytes

Versions: 2

Compression:

Stored size: 212 Bytes

Contents

module TrackChanges
  class AroundUpdate #:nodoc:
    def self.around_update(model)
      model.send(:track_changes_get_changes)
      yield
      model.send(:track_changes_save_audit)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
track_changes-1.0.1 lib/track_changes/around_update.rb
track_changes-1.0.0 lib/track_changes/around_update.rb