rails/rails — pull request #14132 by afair (2014-02-20 22:40:16+00:00)
Title: 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.