1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

A private method can't be called with self.

So calling `filename_with_extensions` omitting the second argument like this
8dbc1fbf85/lib/generators/slim/scaffold/scaffold_generator.rb (L10)
causes NoMethodError.

fixes #28275
This commit is contained in:
Akira Matsuda 2017-03-04 12:05:18 +09:00
parent 64b797dee1
commit 49d61aed4c

View file

@ -17,8 +17,8 @@ module Erb # :nodoc:
:erb
end
def filename_with_extensions(name, format = self.format)
[name, format, handler].compact.join(".")
def filename_with_extensions(name, file_format = format)
[name, file_format, handler].compact.join(".")
end
end
end