Well, the first thing you will need to clone the repository into your rails application is that you usually put it in the provider directory, but rails throws this annoying warning that it will invalidate the use of the supplier directory directory style. it doesn't really matter if you are going to work with version 3. *, so just do it in the vendor or lib directory in your rails application.
git clone git://github.com/gregbell/active_admin.git
Now change your Gemfile and load the gem from the directory you installed
gem 'activeadmin', :path => 'lib/activeadmin'
Now you have your own version of activeadmin, so no matter what you need to edit, you can do it directly from this directory, including changing the default layout in which it is included.
A few tips:
Despite the fact that this method allows you to more accurately configure the active administrator, you are fully aware that in order to update it to a newer version, you will need to do git pull ing and merge if necessary.
I used this method with the jquery-ui-rails plugin and with another gem, it works great, and in addition, you can contribute to the restoration of the gem if you add the hook you want to the gem itself. Good luck
---- Edit ----
As you pointed out in the comment, activeadmin does not work exactly as you would expect, but don't worry that this is still a simple fix. Under the hood, activeadmin uses something called arbre , which is created and maintained by the same developer.
https://github.com/gregbell/arbre , this is just a DOM library for ruby.
So you need to do the following:
Browse to this file inside the activeadmin directory, which you just cloned lib/active_admin/views/footer.rb
this is the activeadmin application footer, as you can see inside the build method, which you can insert inside something like add_scripts and add below
def add_scripts script :src => 'http://yoursource.com' end
I'm not quite sure how the arbre syntax flows, but its not hard to understand.
Good luck