Skip to content

Commit

Permalink
WIP: Restore railtie
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Feb 14, 2024
1 parent 77ae6c8 commit f16624a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby-lsp-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# frozen_string_literal: true

require "ruby_lsp_rails/version"
require "ruby_lsp_rails/railtie"

module RubyLsp
# # Supported features
Expand Down
21 changes: 21 additions & 0 deletions lib/ruby_lsp_rails/railtie.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# typed: strict
# frozen_string_literal: true

require "rails"

module RubyLsp
module Rails
class Railtie < ::Rails::Railtie
config.ruby_lsp_rails = ActiveSupport::OrderedOptions.new
config.ruby_lsp_rails.server = true

initializer "ruby_lsp_rails.setup" do |_app|
config.after_initialize do |_app|
if config.ruby_lsp_rails.server
raise "not needed!"
end
end
end
end
end
end

0 comments on commit f16624a

Please sign in to comment.