lib/so_meta/helper.rb in so_meta-0.8 vs lib/so_meta/helper.rb in so_meta-0.9

- old
+ new

@@ -15,9 +15,11 @@ t("#{request_key}.#{name}", interpolation_data.merge(default: t("so_meta.defaults.#{name}"))) end def so_meta_interpolation(name, hash) - instance_variable_set("@so_meta_#{name}_interpolation", hash) + variable_name = "@so_meta_#{name}_interpolation" + interpolation = instance_variable_get(variable_name) || {} + instance_variable_set(variable_name, interpolation.merge(hash)) end end end