edr 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,11 +7,11 @@ module Edr
7
7
  data_object = data(model)
8
8
  data_object.save!
9
9
 
10
- model.id = data_object.id
11
- model.send(:repository=, self)
10
+ model.id = data_object.id if model.respond_to?(:id)
11
+ model.send(:repository=, self) if model.respond_to?(:repository)
12
12
 
13
13
  model
14
14
  end
15
15
  end
16
16
  end
17
- end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Edr
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: