Is this supposed to be a double pipe |= operator in translates.rb?
isratrade opened this issue · 1 comments
isratrade commented
translates.rb, line 29
self.translatable_attributes |= attributes
Is this supposed to be a double pipe?
henrik commented
Nupe. It's |=
as in set union. The idea is that if you have multiple translates
declarations, perhaps in an inheritance hierarchy, the list should just grow.
Note that since the attributes list is initially set up to be an empty array, ||=
wouldn't have worked anyway since the empty array is not falsy.