mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
152bd3c510
commit
89925e817c
1 changed files with 1 additions and 1 deletions
|
@ -1239,7 +1239,7 @@ module ActiveRecord
|
|||
if match_data
|
||||
rest = name[match_data[0].length, name.length]
|
||||
rest = rest[1, rest.length] if rest.start_with? "."
|
||||
[match_data[1], (rest.any? ? rest : nil)]
|
||||
[match_data[1], (rest.length > 0 ? rest : nil)]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue