Aks..
Aks..

Reputation: 1403

How to remove the ActiveAdmin link in the app?

The link seen as "powered by ActiveAdmin" on every page of the app using this ActiveAdmin gem, can it be removed?? If yes How?? Is there any legality associated with the link??

Upvotes: 8

Views: 3486

Answers (2)

femi-adenubi
femi-adenubi

Reputation: 11

NB @seanlinsley's solution

Define class MyFooter in config/initializers/active_admin.rb above the ActiveAdmin.setup do definition.

Upvotes: 0

seanlinsley
seanlinsley

Reputation: 3205

You can either provide your custom footer:

ActiveAdmin.setup do |config|
  config.view_factory.footer = MyFooter
end
class MyFooter < ActiveAdmin::Component
  def build
    super(id: "footer")
    para "Copyright #{Date.today.year} Your Company"
  end
end

Or you can provide an alternative translation:

en:
  active_admin:
    powered_by: "Your custom text"

Upvotes: 23

Related Questions