mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
options[:action] is very likely to be nil.
This commit is contained in:
parent
77efc20a54
commit
7cee1587f1
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ module ActionDispatch
|
|||
else [ record_or_hash_or_array ]
|
||||
end
|
||||
|
||||
inflection = if options[:action].to_s == "new"
|
||||
inflection = if options[:action] && options[:action].to_s == "new"
|
||||
args.pop
|
||||
:singular
|
||||
elsif (record.respond_to?(:persisted?) && !record.persisted?)
|
||||
|
|
Loading…
Reference in a new issue