Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/lockup.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'lockup/engine'
require 'rails/health_controller_decorator'

module Lockup
extend ActiveSupport::Concern
Expand Down
12 changes: 12 additions & 0 deletions lib/rails/health_controller_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

module Rails
module HealthControllerDecorator
def check_for_lockup
true
end

klass = '::Rails::HealthController'.safe_constantize
klass.prepend(self) if klass
end
end