lib/hyperstack/component/isomorphic_helpers.rb in hyper-component-1.0.alpha1.6 vs lib/hyperstack/component/isomorphic_helpers.rb in hyper-component-1.0.alpha1.7

- old
+ new

@@ -223,11 +223,9 @@ IsomorphicHelpers::Context.send(:define_isomorphic_method, name) do |args_as_json| IsomorphicHelpers::IsomorphicProcCall.new(name, block, self, *JSON.parse(args_as_json)).result end end else - require 'json' - def isomorphic_method(name, &block) self.class.send(:define_method, name) do | *args | IsomorphicHelpers::IsomorphicProcCall.new(name, block, self, *args).result end end