culturecode-track_changes 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07ad7f3aeec94be71f57d6d3e0b3726ab473b8f4
4
- data.tar.gz: 3171e12d387c900f3ee7e1892d45c51bc96ab11e
3
+ metadata.gz: b6e3ca848bdacd4592637bd51cce7aee4e5a574e
4
+ data.tar.gz: c9f521645c6476d4c530e38a82e2efcf3d16feda
5
5
  SHA512:
6
- metadata.gz: c2ef18640299c7abaf104f0c79552de9cd0c7334199500dc0015450a8bd626a1c1741f51871ea22f69ad9a372a9d1631ebdaf794012948715a99ca61ef1e977c
7
- data.tar.gz: 58fa61d8192b607a59c5ab10392667d2be9c10193b836a75ad9395869236313919d3b3d997f0a068760f3308dea32be6bdbe6dd810b6467776b69e2b7669903a
6
+ metadata.gz: 3260b8b1cded3f032c565f2a6962e9a3707148e58424c74d773941b75c9b412f3a58a148609fab65e3f2cfcb7a8ded36b69db986b5e72c5714c5748681b1c13e
7
+ data.tar.gz: 6c31e97c86d94df0d956eeec6aa34bb976cf3bb03617d42b468791e7d15c160ccbb7a02b807ccd8e191c93cce8a028b75a7eeca6d06f24a29426d34f6e6cc86d
@@ -12,7 +12,7 @@ module TrackChanges
12
12
  attr_writer :track_changes_by # Faux attribute to store who made the changes so we can save it in the diff
13
13
 
14
14
  has_one :snapshot, :as => :record, :class_name => 'TrackChanges::Snapshot' # A representation of this record as it was last saved
15
- has_many :diffs, :as => :record, :class_name => 'TrackChanges::Diff' # A representation of changes made between saves through this record's lifetime
15
+ has_many :diffs, lambda { reorder('id DESC') }, :as => :record, :class_name => 'TrackChanges::Diff' # A representation of changes made between saves through this record's lifetime
16
16
 
17
17
  after_save :persist_tracked_changes
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module TrackChanges
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: culturecode-track_changes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Jakobsen, Ryan Wallace