Fix for external generators extend Erb::Generators
Fix for external generators extend Erb::Generators

HAML and probably other generators extend this class and invoke
filename_with_extensions with the old signature (without format).
This makes the second argument optional and defaults it to the #format
method which could be overridden as well.

Closes #14132.

gavingmiller/rails,jeremy/rails,felipecvo/rails,pvalena/rails,eileencodes/rails,bradleypriest/rails,bradleypriest/rails,MSP-Greg/rails,mijoharas/rails,arunagw/rails,riseshia/railsguides.kr,rbhitchcock/rails,shioyama/rails,bogdanvlviv/rails,Sen-Zhang/rails,kaspth/rails,ttanimichi/rails,stefanmb/rails,Envek/rails,esparta/rails,iainbeeston/rails,mechanicles/rails,ledestin/rails,illacceptanything/illacceptanything,MichaelSp/rails,mtsmfm/rails,bogdanvlviv/rails,illacceptanything/illacceptanything,marklocklear/rails,gfvcastro/rails,gfvcastro/rails,joonyou/rails,sergey-alekseev/rails,untidy-hair/rails,illacceptanything/illacceptanything,gcourtemanche/rails,kmcphillips/rails,yasslab/railsguides.jp,lcreid/rails,vipulnsward/rails,schuetzm/rails,88rabbit/newRails,kddeisz/rails,bolek/rails,gcourtemanche/rails,gauravtiwari/rails,vassilevsky/rails,yalab/rails,yhirano55/rails,aditya-kapoor/rails,hanystudy/rails,esparta/rails,rails/rails,tgxworld/rails,deraru/rails,betesh/rails,illacceptanything/illacceptanything,iainbeeston/rails,88rabbit/newRails,yawboakye/rails,starknx/rails,betesh/rails,MichaelSp/rails,ngpestelos/rails,stefanmb/rails,coreyward/rails,Spin42/rails,MSP-Greg/rails,yahonda/rails,flanger001/rails,Envek/rails,eileencodes/rails,kenta-s/rails,kamipo/rails,notapatch/rails,samphilipd/rails,mijoharas/rails,yahonda/rails,Erol/rails,lcreid/rails,riseshia/railsguides.kr,gauravtiwari/rails,lcreid/rails,lucasmazza/rails,georgeclaghorn/rails,schuetzm/rails,kmcphillips/rails,arunagw/rails,elfassy/rails,yalab/rails,notapatch/rails,arjes/rails,vipulnsward/rails,richseviora/rails,rafaelfranca/omg-rails,coreyward/rails,xlymian/rails,illacceptanything/illacceptanything,assain/rails,iainbeeston/rails,kamipo/rails,mathieujobin/reduced-rails-for-travis,kmcphillips/rails,rbhitchcock/rails,printercu/rails,tjschuck/rails,tgxworld/rails,flanger001/rails,alecspopa/rails,amoody2108/TechForJustice,arjes/rails,brchristian/rails,gavingmiller/rails,sealocal/rails,mtsmfm/railstest,mohitnatoo/rails,kirs/rails-1,illacceptanything/illacceptanything,baerjam/rails,shioyama/rails,Sen-Zhang/rails,utilum/rails,mechanicles/rails,Stellenticket/rails,yasslab/railsguides.jp,MichaelSp/rails,flanger001/rails,Spin42/rails,mohitnatoo/rails,EmmaB/rails-1,riseshia/railsguides.kr,kirs/rails-1,starknx/rails,utilum/rails,rafaelfranca/omg-rails,elfassy/rails,illacceptanything/illacceptanything,eileencodes/rails,Edouard-chin/rails,odedniv/rails,illacceptanything/illacceptanything,bogdanvlviv/rails,odedniv/rails,odedniv/rails,palkan/rails,kenta-s/rails,Erol/rails,xlymian/rails,elfassy/rails,notapatch/rails,joonyou/rails,Envek/rails,tgxworld/rails,stefanmb/rails,palkan/rails,BlakeWilliams/rails,amoody2108/TechForJustice,kmcphillips/rails,maicher/rails,kmayer/rails,tjschuck/rails,baerjam/rails,pschambacher/rails,alecspopa/rails,BlakeWilliams/rails,kaspth/rails,betesh/rails,riseshia/railsguides.kr,prathamesh-sonpatki/rails,Erol/rails,kddeisz/rails,bolek/rails,rafaelfranca/omg-rails,samphilipd/rails,notapatch/rails,voray/rails,samphilipd/rails,illacceptanything/illacceptanything,yawboakye/rails,Spin42/rails,rossta/rails,georgeclaghorn/rails,gfvcastro/rails,printercu/rails,matrinox/rails,alecspopa/rails,kachick/rails,mtsmfm/railstest,yasslab/railsguides.jp,mijoharas/rails,palkan/rails,kirs/rails-1,lucasmazza/rails,yalab/rails,jeremy/rails,ledestin/rails,travisofthenorth/rails,pvalena/rails,pvalena/rails,EmmaB/rails-1,shioyama/rails,illacceptanything/illacceptanything,printercu/rails,voray/rails,shioyama/rails,voray/rails,fabianoleittes/rails,kenta-s/rails,repinel/rails,arunagw/rails,rossta/rails,travisofthenorth/rails,betesh/rails,marklocklear/rails,prathamesh-sonpatki/rails,matrinox/rails,ledestin/rails,koic/rails,mtsmfm/rails,rails/rails,bogdanvlviv/rails,kmayer/rails,arjes/rails,assain/rails,richseviora/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,fabianoleittes/rails,88rabbit/newRails,kachick/rails,kmayer/rails,fabianoleittes/rails,Vasfed/rails,koic/rails,Edouard-chin/rails,printercu/rails,schuetzm/rails,yahonda/rails,Stellenticket/rails,lucasmazza/rails,lcreid/rails,aditya-kapoor/rails,koic/rails,rossta/rails,mechanicles/rails,ttanimichi/rails,vipulnsward/rails,sergey-alekseev/rails,BlakeWilliams/rails,eileencodes/rails,gfvcastro/rails,tjschuck/rails,yasslab/railsguides.jp,jeremy/rails,fabianoleittes/rails,mtsmfm/rails,untidy-hair/rails,gcourtemanche/rails,coreyward/rails,hanystudy/rails,vassilevsky/rails,illacceptanything/illacceptanything,kddeisz/rails,gauravtiwari/rails,mohitnatoo/rails,tijwelch/rails,matrinox/rails,palkan/rails,georgeclaghorn/rails,amoody2108/TechForJustice,tijwelch/rails,utilum/rails,prathamesh-sonpatki/rails,starknx/rails,Envek/rails,sealocal/rails,Vasfed/rails,tijwelch/rails,flanger001/rails,Edouard-chin/rails,yhirano55/rails,jeremy/rails,untidy-hair/rails,hanystudy/rails,illacceptanything/illacceptanything,pschambacher/rails,bolek/rails,maicher/rails,Erol/rails,Stellenticket/rails,yalab/rails,pschambacher/rails,kddeisz/rails,untidy-hair/rails,pvalena/rails,sergey-alekseev/rails,mathieujobin/reduced-rails-for-travis,repinel/rails,assain/rails,assain/rails,baerjam/rails,utilum/rails,brchristian/rails,deraru/rails,marklocklear/rails,bradleypriest/rails,joonyou/rails,Stellenticket/rails,vassilevsky/rails,maicher/rails,iainbeeston/rails,aditya-kapoor/rails,ngpestelos/rails,yawboakye/rails,mohitnatoo/rails,brchristian/rails,rails/rails,vipulnsward/rails,baerjam/rails,Edouard-chin/rails,yhirano55/rails,mathieujobin/reduced-rails-for-travis,xlymian/rails,illacceptanything/illacceptanything,tjschuck/rails,yhirano55/rails,esparta/rails,travisofthenorth/rails,MSP-Greg/rails,joonyou/rails,Sen-Zhang/rails,ngpestelos/rails,rbhitchcock/rails,kachick/rails,sealocal/rails,repinel/rails,kaspth/rails,BlakeWilliams/rails,felipecvo/rails,yawboakye/rails,EmmaB/rails-1,repinel/rails,aditya-kapoor/rails,ttanimichi/rails,kamipo/rails,mechanicles/rails,Vasfed/rails,MSP-Greg/rails,arunagw/rails,esparta/rails,Vasfed/rails,deraru/rails,tgxworld/rails,felipecvo/rails,travisofthenorth/rails,richseviora/rails,mtsmfm/railstest,prathamesh-sonpatki/rails,gavingmiller/rails,georgeclaghorn/rails,schuetzm/rails,yahonda/rails,deraru/rails,rails/rails