Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rsamoilov committed Aug 23, 2024
1 parent 5510498 commit bfbeed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rage/ext/active_record/connection_pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def flush!

# Yields a connection from the connection pool to the block.
def with_connection(_ = nil)
unless conn = @__in_use[Fiber.current]
unless (conn = @__in_use[Fiber.current])
conn = connection
fresh_connection = true
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rage/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def call(env)
Rails.configuration.after_initialize do
if Rails.logger && !Rage.logger
rails_logdev = Rails.logger.yield_self { |logger|
logger.class.name == "ActiveSupport::BroadcastLogger" ? logger.broadcasts.last : logger
logger.respond_to?(:broadcasts) ? logger.broadcasts.last : logger
}.instance_variable_get(:@logdev)

Rage.configure do
Expand Down

0 comments on commit bfbeed5

Please sign in to comment.