train_track 0.2.0 → 0.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13b665f35dbf21fdcfa2734d36ef9d5fe700b205
4
- data.tar.gz: bbc8b3dbf6bd2fbca004734cae3229161745a08a
3
+ metadata.gz: 370fe280732bf3b0642f7baf84dbe5f453cf92b8
4
+ data.tar.gz: b86f7db59c874730b2472186c3ac7681c484247f
5
5
  SHA512:
6
- metadata.gz: 87b2f3e6619d27eaf033711af4e30f3429afe6b705dad7b38c478bedb89efb2a794b550ce577412fde8cea1af5864cd5ee96f44c50b16adb142f49ec7d2f08f8
7
- data.tar.gz: fc7b60c170c51556f2f3d64a7ba741cff9e1f3bb6e70dd9424a8ddfc448664053fed524e26e6782b3ad2ffef25acc5f8ff9899e00b1b9ad95de75368249e03d8
6
+ metadata.gz: 05389ddb1ab57055bbd00ea08b4f982169b8c307db0c94198e921c02d39c0d2314078c31ed668f14e28bc9d151a3f8fd89330f8d94ccbe2bb0648eacb8800dd8
7
+ data.tar.gz: 162b639f87cb3aeff82535bb61899a6d11be62904c9d9606073d7e5cb341f50b42098bc6186e6e022838642044c4655663f6ac19f6e7e0c9db5262b3d7491f29
data/lib/train_track.rb CHANGED
@@ -22,10 +22,10 @@ module TrainTrack
22
22
  #
23
23
  def track(model)
24
24
  @_tracker ||= TrainTrack.tracker_class(model).new(user_method, model)
25
- if params[:action] == :update && _tracker_times_called == 0
25
+ if params[:action].to_s == "update" && _tracker_times_called == 0
26
26
  @_tracker.update_before
27
27
  @_tracker_times_called += 1
28
- elsif params[:action] == :update && _tracker_times_called == 1
28
+ elsif params[:action].to_s == "update" && _tracker_times_called == 1
29
29
  @_tracker.update_after
30
30
  else
31
31
  @_tracker.send(params[:action])
@@ -1,3 +1,3 @@
1
1
  module TrainTrack
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train_track
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Super
@@ -105,6 +105,7 @@ files:
105
105
  - lib/generators/train_track/tracker/tracker_generator.rb
106
106
  - lib/train_track.rb
107
107
  - lib/train_track/version.rb
108
+ - train_track-0.2.0.gem
108
109
  - train_track.gemspec
109
110
  homepage: https://github.com/ANthonySUper/train_track
110
111
  licenses: