First off, thanks for this gem! It's really helped us organize our backend in a much more manageable way.
While customizing our app we found out that the combination of ActiveAdmin::Pages and belongs_to currently doesn't work. This is because HeaderWithSubnav#has_sub_nav? will also try to call #has_nested_resources on an ActiveAdmin::Page object if it belongs to a parent resource.
This PR make that possible.
@zorab47 Incidentally, I found it very difficult to get the tests working and was only able to do so with quite a few changes (see here). Just out of curiosity, how do you normally go about running them?
I haven't looked into this project in a while and don't recall how to execute the tests. It is probably worthwhile to add continuous integration to the project.
First off, thanks for this gem! It's really helped us organize our backend in a much more manageable way.
While customizing our app we found out that the combination of
ActiveAdmin::Page
s andbelongs_to
currently doesn't work. This is becauseHeaderWithSubnav#has_sub_nav?
will also try to call#has_nested_resources
on anActiveAdmin::Page
object if it belongs to a parent resource.This PR make that possible.
@zorab47 Incidentally, I found it very difficult to get the tests working and was only able to do so with quite a few changes (see here). Just out of curiosity, how do you normally go about running them?