Sha256: 76e75537635d0defd7ed8bbbc5c0adc849374a79c59b79155959a6a46106afc1
Contents?: true
Size: 694 Bytes
Versions: 19
Compression:
Stored size: 694 Bytes
Contents
module Faalis module Generators module Concerns # This **concern** adds support of side menu to scaffold and `menu` key # to jsonfile. `menu` key is an array which each element represent a menu # entry and should be and object with following keys: # # `title`: Title of submenu # # `url`: Url of submenu link # # `action`: Permissions related action to check on resource model. # # `model`: Model of related resource which permission action should be check # against. module Menu private def has_menu? resource_data.include? "menu" end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems