Skip to content

Commit

Permalink
Merge pull request #1 from parachutehealth/remove-deprecation-warnings
Browse files Browse the repository at this point in the history
Switch before filter to before action
  • Loading branch information
quainjn authored Mar 30, 2017
2 parents cdcfa55 + 151309e commit 63511b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/swagger_engine/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module SwaggerEngine
class ApplicationController < ActionController::Base

before_filter :authenticate
before_action :authenticate

force_ssl if: :require_ssl
def require_ssl
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/swagger_engine/swaggers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module SwaggerEngine
class SwaggersController < ApplicationController
layout false

before_filter :load_json_files
before_action :load_json_files

def index
redirect_to swagger_path(@json_files.first[0]) if ( @json_files.size == 1 )
Expand Down

0 comments on commit 63511b3

Please sign in to comment.