File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
spec/example/config/initializers Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ class Config
1212 :infer_default_as_non_null ,
1313 :ar_comment_to_string ,
1414 :infer_ar_enums ,
15- :rbs
15+ :rbs ,
16+ :rbs_sig_path
1617
1718 def initialize
1819 @ar_column_to_type = nil
@@ -28,6 +29,7 @@ def initialize
2829 @ar_comment_to_string = nil
2930 @infer_ar_enums = nil
3031 @rbs = "off"
32+ @rbs_sig_path = Rails . root . join ( "rbs" )
3133 end
3234 end
3335end
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def env
5454
5555 def loader
5656 @loader ||= ::RBS ::EnvironmentLoader . new . tap do |l |
57- l . add ( path : Rails . root . join ( "sig" ) )
57+ l . add ( path : Anchor . config . rbs_sig_path )
5858 end
5959 end
6060
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ module Anchor
2222 }
2323
2424 c . empty_relationship_type = -> { Anchor ::Types ::Object }
25+ c . rbs_sig_path = Rails . root . join ( "sig" )
2526 end
2627end
2728
You can’t perform that action at this time.
0 commit comments