File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,7 @@ def add_methods(model)
5757
5858 begin
5959 if models . include? association_klass . classify . constantize
60- if circular_finder [ model . to_s ] . include? association_klass || association_klass == model . to_s
61- inject_into_file type_path ( model ) , before : "# End of fields\n " do <<-FILE
60+ inject_into_file type_path ( model ) , before : "# End of fields\n " do <<-FILE
6261 field :#{ ast . to_s } do
6362 type -> { #{ model . reflect_on_association ( ast ) . class_name } Type }
6463
@@ -67,19 +66,7 @@ def add_methods(model)
6766 }
6867 end
6968
70- FILE
71- end
72- else
73- inject_into_file type_path ( model ) , before : "# End of fields\n " do <<-FILE
74- field :#{ ast . to_s } do
75- type -> #{ model . reflect_on_association ( ast ) . class_name } Type
76-
77- resolve -> (#{ singular_route_key ( model ) } , args, ctx) {
78- #{ singular_route_key ( model ) } .#{ ast . to_s }
79- }
80- end
81- FILE
82- end
69+ FILE
8370 end
8471 end
8572 rescue => ex
You can’t perform that action at this time.
0 commit comments