edr 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/edr/ar/repository.rb +3 -3
- data/lib/edr/version.rb +1 -1
- metadata +1 -1
data/lib/edr/ar/repository.rb
CHANGED
@@ -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
|
data/lib/edr/version.rb
CHANGED