…t calling to_s on the argument. Apparently the attributes hash has string keys. Previous commit was failing on some tests.
It had previously been included as a performance crutch because page# inadvertently fetched all page_parts; after previous commit, this becomes unnecessary.
… it tries to fetch a page_part. Previously any calls to nil attributes (eg page['parent_id']) would force loading of all the page_parts.
… collection is only pages in the menu. By default we fetch: @menu_pages = Page.live.in_menu.order('lft ASC'). So we don't need to re-check later. I think we can rely on users to apply the same checks if they manually fetch a different set of menu pages.
… when current page has no children. Uses nested_set's #has_descendents?, which uses left/right attributes on Page.
…ean up the dialog after closing it. Closes GH-477
…mized on a page by page basis
…ue of the download link always being applied to the first resource picker on the form.
…iple resources in a single engine