lib/include/class_knjappserver_web.rb in knjappserver-0.0.21 vs lib/include/class_knjappserver_web.rb in knjappserver-0.0.22

- old
+ new

@@ -90,9 +90,10 @@ #Returns a number localized as a string. def num(*args) return Knj::Locales.number_out(*args) end + #Hashes with numeric keys will be turned into arrays instead. This is not done automatically because it can wrongly corrupt data if not used correctly. def get_parse_arrays(arg = nil, ob = nil) arg = _get.clone if !arg #Parses key-numeric-hashes into arrays and converts special model-strings into actual models. if arg.is_a?(Hash) and Knj::ArrayExt.hash_numeric_keys?(arg) \ No newline at end of file