title: Extending Active Admin views in Rails Engine
body: <p>I've got my Active Admin gem installed in my main app and a mountable engine set up in an "engines" directory I have just created.</p>
  
  <p>I would like to tweak my main app's ActiveAdmin views in my engine so I would be able to add specific links and stuff.</p>
  
  <p>My engine has its own namespace (let's call it MyOwnEngine for simplicity's sake).</p>
  
  <p>I have created a "activeadmin_components.rb" file in my engine's "lib/admin" directory and I have added this:</p>
  
  <pre><code>module MyOwnEngine
      module ActiveAdmin
          module Views
             class Header &lt; ::ActiveAdmin::Component
  
             def build(namespace, menu)
                 super(:id =&gt; "header")
                 # stuff is done here...nothing that matters, really...
                 build_site_title
             end
  
             def build_site_title
                  render "admin/parts/myenginespecificpart" 
             end
          end
      end
  end
  </code></pre>
  
  <p>This lives within the MyOwnEngine namespace but is never displayed, these customizations don't overwrite those written in the main app</p>
  
  <p>If I remove the namespace (the module MyOwnEngine part), then the customizations written in my engine overwrite those of my main app.</p>
  
  <p>if I hit <a href="http://whatever/app" rel="nofollow">http://whatever/app</a>, I'd like the Active Admin views of my app displayed and if I hit <a href="http://whatever/engine" rel="nofollow">http://whatever/engine</a>, I'd like to have the  Active Admin views of my app + the customizations I have done in my engine but I can't.</p>
  
  <p>I know it must be a namespace-related issue and it must be trivial but I can't figure out what it is at the moment.</p>
  
  <p>Any help is appreciated. Thanks.</p>