I've got an API app so my ApplicationController inherit from ActionController::API :
class ApplicationController < ActionController::API; end
But it turns out I need to have two views so I create new controller with two actions and corresponding views. To make it works my controller should inherit from ActionController::Base
class ClientsController < ActionController::Base
def index; end
def show; end
end
Which gets me Rubocop error:
Rails/ApplicationController: Controllers should subclass 'ApplicationController'
Is there any way to avoid this error?