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 9628923 commit 4e0be28Copy full SHA for 4e0be28
lib/active_record/connection_adapters/sqlserver_adapter.rb
@@ -97,7 +97,11 @@ def table_name
97
end
98
99
def table_klass
100
- @table_klass ||= table_name.classify.constantize rescue nil
+ @table_klass ||= begin
101
+ table_name.classify.constantize
102
+ rescue StandardError, NameError, LoadError
103
+ nil
104
+ end
105
(@table_klass && @table_klass < ActiveRecord::Base) ? @table_klass : nil
106
107
0 commit comments