prepend mutates the string so we can remove the assignment
This commit is contained in:
parent
e5f840ca46
commit
0369dbfd42
@ -26,7 +26,7 @@ def self.build(lhs_class, name, options)
|
||||
model_name = name.to_s.camelize.singularize
|
||||
|
||||
if parent_name = lhs_class.parent_name
|
||||
model_name = model_name.prepend("#{parent_name}::")
|
||||
model_name.prepend("#{parent_name}::")
|
||||
end
|
||||
|
||||
model_name
|
||||
|
Loading…
Reference in New Issue
Block a user