lib/devdnsd/rule.rb in devdnsd-2.3.1 vs lib/devdnsd/rule.rb in devdnsd-2.4.0
- old
+ new
@@ -43,10 +43,10 @@
# Returns the resource class(es) for the current rule.
#
# @return [Array|Class] The class(es) for the current rule.
def resource_class
- classes = @type.ensure_array(nil, true, true) {|cls| self.class.symbol_to_resource_class(cls, options[:locale]) }
+ classes = @type.ensure_array(nil, true, true, true) {|cls| self.class.symbol_to_resource_class(cls, options[:locale]) }
classes.length == 1 ? classes.first : classes
end
# Checks if the rule is a regexp.
#