From 8f0fa0bb82940c6823e8084a3b4f18070833da9b Mon Sep 17 00:00:00 2001 From: catmando Date: Fri, 20 Apr 2018 03:53:13 -0400 Subject: [PATCH] removed put statement and closes #85 --- hyper-mesh.gemspec | 2 +- lib/reactive_record/server_data_cache.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hyper-mesh.gemspec b/hyper-mesh.gemspec index 80b5e7f0..2ae954b6 100644 --- a/hyper-mesh.gemspec +++ b/hyper-mesh.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |spec| # } spec.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(examples|gemfiles|pkg|reactive_record_test_app|spec)/}) } - spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } + # spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } spec.test_files = `git ls-files -- {spec}/*`.split("\n") spec.require_paths = ['lib'] diff --git a/lib/reactive_record/server_data_cache.rb b/lib/reactive_record/server_data_cache.rb index 3acab5cc..1e93a9b0 100644 --- a/lib/reactive_record/server_data_cache.rb +++ b/lib/reactive_record/server_data_cache.rb @@ -453,7 +453,6 @@ def self.load_from_json(tree, target = nil) elsif value.is_a? Array # we cannot use target.send "#{method}=" here because it might be a server method, which does not have a setter # a better fix might be something like target._internal_attribute_hash[method] = ... - puts "calling set_attr_value(#{method}, #{value.first})" target.backing_record.set_attr_value(method, value.first) unless method == :id elsif value.is_a? Hash and value[:id] and value[:id].first and association = target.class.reflect_on_association(method) # not sure if its necessary to check the id above... is it possible to for the method to be an association but not have an id?