Class: Cats::Core::MenuService

Inherits:
Object
  • Object
show all
Defined in:
app/services/cats/core/menu_service.rb

Instance Method Summary collapse

Instance Method Details

#fetch_menu(user) ⇒ Object



4
5
6
# File 'app/services/cats/core/menu_service.rb', line 4

def fetch_menu(user)
  user.roles.map(&:role_menus).flatten
end