lib/mix-rails-auth/engine.rb in mix-rails-auth-0.16.0 vs lib/mix-rails-auth/engine.rb in mix-rails-auth-0.22.0
- old
+ new
@@ -9,10 +9,10 @@
submenu.title = I18n.t 'users.users'
submenu.url = 'admix_users_url'
submenu.instance_eval do
def can_render?(current_user)
- current_user.is?(:admin)
+ current_user.has_role? :admin
end
end
end
end