hyper-react
hyper-react copied to clipboard
conversion of param type Hash, and [Hash] should be built-in
From @catmando on December 9, 2015 15:45
currently you have to define Hash._react_param_conversion(json, validate_only=nil) for the conversion to work. This should be built-in
class Hash
def self._react_param_conversion(json, validate_only = nil)
if validate_only
true
else
Hash.new(json)
end
end
end
Copied from original issue: zetachang/react.rb#95
@zetachang - i think this is fixed