Skip to content

Commit 1d49b51

Browse files
authored
Merge pull request reidmorrison#161 from grncdr/patch-1
Fix rendering of bind values for Rails 7
2 parents f4c2945 + 165589b commit 1d49b51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rails_semantic_logger/active_record/log_subscriber.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ def type_casted_binds_v5_1_5(casted_binds)
198198
alias bind_values bind_values_v5_0_3
199199
alias render_bind render_bind_v5_0_3
200200
alias type_casted_binds type_casted_binds_v5_0_3
201-
elsif Rails::VERSION::MAJOR == 6 && Rails::VERSION::MINOR > 0 # ~> 6.1.0
201+
elsif (Rails::VERSION::MAJOR == 6 && Rails::VERSION::MINOR > 0) || # ~> 6.1.0
202+
Rails::VERSION::MAJOR == 7
202203
alias bind_values bind_values_v6_1
203204
alias render_bind render_bind_v6_1
204205
alias type_casted_binds type_casted_binds_v5_1_5

0 commit comments

Comments
 (0)