hyper-react icon indicating copy to clipboard operation
hyper-react copied to clipboard

conversion of param type Hash, and [Hash] should be built-in

Open sollycatprint opened this issue 9 years ago • 1 comments

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

sollycatprint avatar Jun 13 '16 13:06 sollycatprint

@zetachang - i think this is fixed

catmando avatar Sep 07 '16 01:09 catmando