Skip to content

Ability to specify parent controller #478

@heaven

Description

@heaven

We try using Ahoy with a React.js application and need to add custom token authentication to controllers. The gem inherits from the ApplicationsController which isn't used in our application for the API and doesn't allow us to apply token-based authentication.

As a workaround I've reopened the base controller and included some of the required concerns:

class Ahoy::BaseController < ApplicationController
  include APIExceptions
  include APITokenAuth
end

But in our case, it doesn't seem right to me that it inherits from the ApplicationsController.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions