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:
parent
64b797dee1
commit
49d61aed4c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue