I have following line which was suspected of SQL injection by a static code analyzer:
Admin.joins(:accounts_admins).where(user_id: params[:user_u ser_id], "members.account_id" => @account.id).first To me, it looks safe as its using parameterized query. Let me know if anyone think otherwise.