Skip to content

Commit cd78b79

Browse files
committed
Remove circular require from resource/belongs_to
When running specs with `RUBYOPTS='-w'`, there are a lot of warnings related to a circular require between `lib/active_admin/resource/belongs_to.rb` and `activeadmin/lib/active_admin/resource.rb` ``` lib/active_admin/resource/belongs_to.rb:2: warning: lib/active_admin/resource/belongs_to.rb:2: warning: loading in progress, circular require considered harmful - lib/active_admin/resource.rb ``` According to the blame, there is no particular reason to have the inverse require from `belongs_to` to `resource` Close #8598
1 parent 5f54f91 commit cd78b79

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/active_admin/resource/belongs_to.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# frozen_string_literal: true
2-
require_relative "../resource"
32

43
module ActiveAdmin
54
class Resource

0 commit comments

Comments
 (0)