Sha256: 49776fa171e78f0c8011be37a246da65ffac1f9712f2917a132eab0785d94243
Contents?: true
Size: 619 Bytes
Versions: 15
Compression:
Stored size: 619 Bytes
Contents
module MixRailsAuth class Engine < ::Rails::Engine def navigation if defined? Admix Admix::Navigation::NavBar.post_menu do Admix::Navigation::NavBar.find(:general) do |menu| menu.submenu do |submenu| submenu.key = :users submenu.title = I18n.t 'users.users' submenu.url = 'admix_users_url' submenu.instance_eval do def can_render?(current_user) current_user.is?(:admin) end end end end end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems