Skip to content

Commit

Permalink
Support new @raw_connection ivar name
Browse files Browse the repository at this point in the history
  • Loading branch information
nvasilevski committed Feb 28, 2022
1 parent 07e9b80 commit 7384a76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/semian/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

class ActiveRecord::ConnectionAdapters::AbstractAdapter
def semian_resource
@connection.semian_resource
# support for https://github.com/rails/rails/commit/d86fd6415c0dfce6fadb77e74696cf728e5eb76b
connection = instance_variable_defined?("@raw_connection") ? @raw_connection : @connection
connection.semian_resource
end
end

0 comments on commit 7384a76

Please sign in to comment.