```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
  before_action :authenticate_user!

  private

  def check_admin
    return if current_user.admin?
    redirect_to root_url
  end
end
```

Add empty line after guard claus for rubocop
user
```ruby
class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
  before_action :authenticate_user!

  private

  def check_admin
    return if current_user.admin?

    redirect_to root_url
  end
end
```
assistant