Skip to content

Instantly share code, notes, and snippets.

@jarinudom
Created September 20, 2013 09:14
Show Gist options
  • Save jarinudom/6635057 to your computer and use it in GitHub Desktop.
Save jarinudom/6635057 to your computer and use it in GitHub Desktop.
ActiveAdmin.register Profile do
controller do
def scoped_collection
end_of_association_chain.visible.include(:photos)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment