Skip to content

Instantly share code, notes, and snippets.

@sidraval
Created July 14, 2020 13:05
Show Gist options
  • Save sidraval/8d6d430cafed8fe802a882061139a1d8 to your computer and use it in GitHub Desktop.
Save sidraval/8d6d430cafed8fe802a882061139a1d8 to your computer and use it in GitHub Desktop.
Active Admin configuration - modify each page with HTML injected into the body
module AdminPageLayoutOverride
def build_page(*args)
within super do
render "layouts/environment"
end
end
end
ActiveAdmin::Views::Pages::Base.send :prepend, AdminPageLayoutOverride
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment