qor_dsl 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/qor_dsl/node.rb +2 -2
- data/qor_dsl.gemspec +1 -1
- metadata +1 -1
data/lib/qor_dsl/node.rb
CHANGED
@@ -49,7 +49,7 @@ module Qor
|
|
49
49
|
|
50
50
|
def first(type=nil, name=nil)
|
51
51
|
selected_children = find(type, name)
|
52
|
-
selected_children.is_a?
|
52
|
+
selected_children.is_a?(Array) ? selected_children[0] : selected_children
|
53
53
|
end
|
54
54
|
|
55
55
|
def value
|
@@ -58,7 +58,7 @@ module Qor
|
|
58
58
|
|
59
59
|
def inspect
|
60
60
|
result = [
|
61
|
-
['name',
|
61
|
+
['name', name],
|
62
62
|
['parent', parent && parent.inspect_name],
|
63
63
|
['config', config.__name],
|
64
64
|
['children', children.map(&:inspect_name)],
|
data/qor_dsl.gemspec
CHANGED