dirty_history 0.6.5 → 0.6.6

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 CHANGED
@@ -1 +1 @@
1
- 0.6.5
1
+ 0.6.6
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "dirty_history"
8
- s.version = "0.6.5"
8
+ s.version = "0.6.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gavin Todes"]
@@ -104,13 +104,15 @@ module DirtyHistory
104
104
  :new_value => new_value,
105
105
  :creator => creator
106
106
  }
107
+
108
+ dhr = DirtyHistoryRecord.new(dhr_attributes)
107
109
 
108
110
  # attributes for manual updates
109
111
  [:revised_created_at, :performing_manual_update].each do |attribute|
110
- dhr_attributes[attribute] = options[attribute] if options[attribute]
112
+ dhr.send("#{attribute}=", options[attribute]) if options[attribute]
111
113
  end
112
114
 
113
- self.dirty_history_records << DirtyHistoryRecord.new(dhr_attributes)
115
+ self.dirty_history_records << dhr
114
116
  end
115
117
 
116
118
  end # ObjectInstanceMethods
@@ -25,8 +25,7 @@ class DirtyHistoryRecord < ActiveRecord::Base
25
25
 
26
26
  attr_accessible :object, :object_id, :object_type,
27
27
  :column_name, :column_type, :old_value, :new_value,
28
- :creator, :creator_id, :creator_type,
29
- :revised_created_at, :performing_manual_update
28
+ :creator, :creator_id, :creator_type, :revised_created_at
30
29
 
31
30
  [:new_value, :old_value].each do |attribute|
32
31
  define_method "#{attribute}" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dirty_history
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -2345,7 +2345,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
2345
2345
  version: '0'
2346
2346
  segments:
2347
2347
  - 0
2348
- hash: -2431802651301732245
2348
+ hash: -4302611025516014363
2349
2349
  required_rubygems_version: !ruby/object:Gem::Requirement
2350
2350
  none: false
2351
2351
  requirements: