K
konsu
hello,
if a double quoted string has a #{} block that evaluates to another double
quoted string with another #{} block, will the resulting string be expanded
too?
for example, in ActiveRecord i have:
acts_as_list :scope => 'parent_id #{self.parent_id.nil? ? "is null" :
"=#{self.parent_id}"}'
i just checked and it seems so, but the question is whether this is well
defined behaviour and not just a coincidence.
thanks
konstantin
if a double quoted string has a #{} block that evaluates to another double
quoted string with another #{} block, will the resulting string be expanded
too?
for example, in ActiveRecord i have:
acts_as_list :scope => 'parent_id #{self.parent_id.nil? ? "is null" :
"=#{self.parent_id}"}'
i just checked and it seems so, but the question is whether this is well
defined behaviour and not just a coincidence.
thanks
konstantin