lib/ab_admin/devise.rb in ab_admin-0.6.1 vs lib/ab_admin/devise.rb in ab_admin-0.7.0

- old
+ new

@@ -21,10 +21,10 @@ class SessionsController < ::Devise::SessionsController include ::AbAdmin::Devise::Controller def after_sign_in_path_for(resource) stored_location_for(resource) || - if resource.is_a?(User) && resource.moderator? + if resource.is_a?(User) && resource.admin_access? admin_root_path else super end end