prepend mutates the string so we can remove the assignment

This commit is contained in:
Rafael Mendonça França 2014-05-16 15:31:51 -03:00
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