Skip to content

Commit 3f5ba7e

Browse files
authored
Merge pull request reidmorrison#144 from CrazyPit/fix-ruby-warnings
Fix ruby warnings
2 parents f2b280b + 8c3c0ad commit 3f5ba7e

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

lib/rails_semantic_logger/extensions/action_cable/tagged_logger_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ActionCable::Connection::TaggedLoggerProxy
1+
require "action_cable/connection/tagged_logger_proxy"
22

33
module ActionCable
44
module Connection

lib/rails_semantic_logger/extensions/action_controller/live.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Log actual exceptions, not a string representation
2-
ActionController::Live
2+
require "action_controller"
3+
34
module ActionController
45
module Live
56
undef_method :log_error

lib/rails_semantic_logger/extensions/action_dispatch/debug_exceptions.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Log actual exceptions, not a string representation
2-
ActionDispatch::DebugExceptions
2+
require "action_dispatch"
3+
34
module ActionDispatch
45
class DebugExceptions
56
private

lib/rails_semantic_logger/extensions/action_view/streaming_template_renderer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Log actual exceptions, not a string representation
2-
ActionView::StreamingTemplateRenderer
2+
require "action_view/renderer/streaming_template_renderer"
33

44
module ActionView
55
class StreamingTemplateRenderer

lib/rails_semantic_logger/extensions/active_job/logging.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module Logging
77

88
private
99

10+
undef_method :tag_logger
1011
def tag_logger(*tags, &block)
1112
logger.tagged(*tags, &block)
1213
end

lib/rails_semantic_logger/extensions/rails/server.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Patch the Rails::Server log_to_stdout so that it logs via SemanticLogger
2-
Rails::Server
2+
require "rails"
3+
34
module Rails
45
class Server
56
private
6-
7+
8+
undef_method :log_to_stdout
79
def log_to_stdout
810
wrapped_app # touch the app so the logger is set up
911

0 commit comments

Comments
 (0)