You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make Rails app detection based on Rails::Application superclass (#2218)
* Make Rails app detection based on Rails::Application superclass
This change makes the Rails app detection based on the superclass of the
main class being `Rails::Application`. This is a more reliable way to
detect Rails apps than looking for the presence of the `rails` gem in
the Gemfile. Application can require some of the Rails components
without requiring the `rails` gem itself.
co-authored-by: Earlopain <[email protected]>
* Apply earl's suggestion
* Create files instead of stubbing
* Update lib/ruby_lsp/setup_bundler.rb
Co-authored-by: Alexandre Terrasa <[email protected]>
* Use fixture for test
* Update test/setup_bundler_test.rb
Co-authored-by: Vinicius Stock <[email protected]>
---------
Co-authored-by: Earlopain <[email protected]>
Co-authored-by: Andy Waite <[email protected]>
Co-authored-by: Andy Waite <[email protected]>
Co-authored-by: Alexandre Terrasa <[email protected]>
Co-authored-by: Vinicius Stock <[email protected]>
0 commit comments