lib/canner/util.rb in canner-0.0.2 vs lib/canner/util.rb in canner-0.1.0
- old
+ new
@@ -11,10 +11,10 @@
strings.map{|s| s.to_sym}
end
# ensure given roles are in the form of an array
def arrayify(roles)
- roles.class == Array ? roles : [roles].flatten
+ Array.wrap(roles).flatten
end
end
end