osunyorg/admin

View on GitHub
app/models/communication/website/page/with_automatic_menus.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Communication::Website::Page::WithAutomaticMenus
  extend ActiveSupport::Concern

  included do
    after_save :generate_automatic_menus
  end

  protected

  def generate_automatic_menus
    website.generate_automatic_menus_for_identifier(default_menu_identifier)
  end
end