Skip to content

Commit 2420ee1

Browse files
committed
wip last regression bug fixed after setters rewrite
1 parent bc949c7 commit 2420ee1

File tree

1 file changed

+1
-1
lines changed
  • ruby/hyper-model/lib/reactive_record/active_record/reactive_record

1 file changed

+1
-1
lines changed

ruby/hyper-model/lib/reactive_record/active_record/reactive_record/getters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def get_belongs_to(assoc, reload = nil)
77
return if new?
88
if id.present?
99
value = Base.fetch_from_db([@model, [:find, id], attr, @model.primary_key])
10-
klass = Base.fetch_from_db([@model, [:find, id], attr, 'class', 'name'])
10+
klass = Base.fetch_from_db([@model, [:find, id], attr, 'model_name'])
1111
klass &&= Object.const_get(klass)
1212
end
1313
value = find_association(assoc, value, klass)

0 commit comments

Comments
 (0)