Class: EffectivePagesMenuDatatable

Inherits:
Effective::Datatable
  • Object
show all
Defined in:
app/datatables/effective_pages_menu_datatable.rb

Instance Method Summary collapse

Instance Method Details



51
52
53
54
# File 'app/datatables/effective_pages_menu_datatable.rb', line 51

def menu
  menu = EffectivePages.menus.find { |menu| menu.to_s == attributes[:menu].to_s }
  menu || raise("unexpected menu: #{attributes[:menu] || 'none'}")
end