Skip to content

Commit

Permalink
Support of Rails 3 has been dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Mar 13, 2019
1 parent 9fcabf5 commit 2a87f4e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions app/controllers/health_monitor/health_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
module HealthMonitor
class HealthController < ActionController::Base
protect_from_forgery with: :exception

if Rails.version.starts_with? '3'
before_filter :authenticate_with_basic_auth
else
before_action :authenticate_with_basic_auth
end
before_action :authenticate_with_basic_auth

def check
@statuses = statuses
Expand Down

0 comments on commit 2a87f4e

Please sign in to comment.