Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Commit

Permalink
removed put statement and closes #85
Browse files Browse the repository at this point in the history
  • Loading branch information
catmando committed Apr 20, 2018
1 parent ab8637b commit 8f0fa0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion hyper-mesh.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down
1 change: 0 additions & 1 deletion lib/reactive_record/server_data_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 8f0fa0b

Please sign in to comment.