We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77ae6c8 commit 231cc6fCopy full SHA for 231cc6f
lib/ruby-lsp-rails.rb
@@ -2,6 +2,7 @@
2
# frozen_string_literal: true
3
4
require "ruby_lsp_rails/version"
5
+require "ruby_lsp_rails/railtie"
6
7
module RubyLsp
8
# # Supported features
lib/ruby_lsp_rails/railtie.rb
@@ -0,0 +1,21 @@
1
+# typed: strict
+# frozen_string_literal: true
+
+require "rails"
+module RubyLsp
+ module Rails
+ class Railtie < ::Rails::Railtie
9
+ config.ruby_lsp_rails = ActiveSupport::OrderedOptions.new
10
+ config.ruby_lsp_rails.server = true
11
12
+ initializer "ruby_lsp_rails.setup" do |_app|
13
+ config.after_initialize do |_app|
14
+ unless config.ruby_lsp_rails.server.nil?
15
+ raise "not needed!"
16
+ end
17
18
19
20
21
+end
0 commit comments