app/models/ecm/cms/navigation_item.rb in ecm_cms2-4.0.1 vs app/models/ecm/cms/navigation_item.rb in ecm_cms2-4.1.0

- old
+ new

@@ -8,10 +8,11 @@ belongs_to :ecm_cms_navigation, class_name: 'Ecm::Cms::Navigation', foreign_key: 'ecm_cms_navigation_id' belongs_to :ecm_cms_page, class_name: 'Ecm::Cms::Page', - foreign_key: 'ecm_cms_page_id' + foreign_key: 'ecm_cms_page_id', + optional: true # awesome nested set acts_as_nested_set dependent: :destroy, counter_cache: :children_count, scope: :ecm_cms_navigation_id # callbacks