smajn-track_changes 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 2
3
- :patch: 0
3
+ :patch: 1
4
4
  :major: 0
@@ -16,7 +16,7 @@ module TrackChanges
16
16
  end
17
17
 
18
18
  def after(controller)
19
- cur_model = clone_model(controller)
19
+ cur_model = controller.instance_variable_get("@#{@model}")
20
20
  # If changed? returns true, then the update didn't success.
21
21
  unless cur_model.changed?
22
22
  @changes = changes_between(@original, cur_model)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smajn-track_changes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Haley