background_lite 0.2.4 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,8 @@ module ActiveRecord
16
16
  def clone_for_background
17
17
  returning dup do |x|
18
18
  x.cleanup_for_background
19
+ x.send(:instance_variable_set, "@new_record", new_record?)
20
+ x.id = self.id
19
21
 
20
22
  # taken from ActiveRecord::AttributeMethods::ATTRIBUTE_TYPES_CACHED_BY_DEFAULT
21
23
  type_to_preserve = [DateTime, Time, Date]
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: background_lite
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 4
10
- version: 0.2.4
8
+ - 3
9
+ version: "0.3"
11
10
  platform: ruby
12
11
  authors:
13
12
  - Thomas Kadauke
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-10-31 00:00:00 +01:00
17
+ date: 2012-11-14 00:00:00 +01:00
19
18
  default_executable:
20
19
  dependencies: []
21
20