Skip to content

Commit

Permalink
Merge pull request iftheshoefritz#64 from masamitsu-murase/fix_incomp…
Browse files Browse the repository at this point in the history
…atibility_with_rails7.1

Resolve incompatibility with Rails 7.1.
  • Loading branch information
iftheshoefritz authored Feb 22, 2024
2 parents 640edae + e3a6667 commit 2449b3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/solargraph-rails.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'solargraph'
require 'active_support'
require 'active_support/core_ext/string/inflections'

require_relative 'solargraph/rails/util.rb'
Expand Down
2 changes: 1 addition & 1 deletion lib/solargraph/rails/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def find_table(source_map, ns)

def infer_table_names(ns)
table_name = ns.name.tableize
if ns.namespace.present?
if ns.namespace && !ns.namespace.empty?
[ns.path.tableize.tr('/', '_'), table_name]
else
[table_name]
Expand Down

0 comments on commit 2449b3d

Please sign in to comment.