dcidev_active_record 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nested_attribute_helper.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8446ee19d66a28093f5a5944f61d386cce63842d56c7290eaac3e6e7ccc96341
|
4
|
+
data.tar.gz: 7e0e82c4d8fe0bb5496680f272412ac620832982e9eee9987f76dd77d4e9a5aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8faab31f65faafe8aec947c52d8b0574e213aba2914929a5f147d265a6d5f4f16bc5f334ad3dd647566350d8e06e57120af20d345ea4a7289c114b4b8337402c
|
7
|
+
data.tar.gz: d764ee8a95bfe93b77cdba33a271739c425c7fc17af3a78946659320a4e54a15f6b350a832041c52ee44142efafcd1869902d5cc27ba42c08c7fe598d639175d
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'active_record'
|
2
|
+
|
1
3
|
module NestedAttributeHelper
|
2
4
|
def init_nested_attributes(reflections)
|
3
5
|
reflections.each do |r|
|
@@ -11,4 +13,7 @@ module NestedAttributeHelper
|
|
11
13
|
end
|
12
14
|
end
|
13
15
|
end
|
14
|
-
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
ActiveRecord::Base.send(:extend, NestedAttributeHelper)
|