Use `before_action` for compatibility with Rails 5.

This commit is contained in:
Guo Xiang Tan 2017-09-04 17:04:45 +08:00
parent f3b0bce3d7
commit a6539a6cf5
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ module DockerManager
include CurrentUser
before_filter :ensure_admin
before_action :ensure_admin
protect_from_forgery
def handle_unverified_request