subcomponent 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/subcomponent/component.rb +2 -0
- data/lib/subcomponent/version.rb +1 -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: e1acf4e16006254b88c0d331759b3e3e76bd796cebba5972482ad44f9d3fe496
|
4
|
+
data.tar.gz: e752615b8bfe738fca66a171caed47c29ae1282082b3a86fb956dce2fa10a38c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2016e54ba1067df0a3ca62ed242d6b2cb9b62e10b7287066429571dc8950cf0c6b85dd1de49a97a0bad0e201634d9cfe9122759e7ed16774c491da4dc93491a
|
7
|
+
data.tar.gz: 6a3f6d01dad03800859a71287d9a376d8f9a92998f69625ae47607942dd831ecf39698a4b5f021adbec54412f757c4fbd8f4f19d4c6c11075d4759fbb62683da
|
@@ -176,6 +176,8 @@ class Component
|
|
176
176
|
# this.copy_components :links, :mobile_links
|
177
177
|
#
|
178
178
|
def copy_components(from, to)
|
179
|
+
return if _components[from].nil?
|
180
|
+
|
179
181
|
_components[to] = _components[from].map(&:dup).tap do |comps|
|
180
182
|
comps.each do |comp|
|
181
183
|
comp._name = to
|
data/lib/subcomponent/version.rb
CHANGED