lib/active_text/base.rb in active_text-0.0.3 vs lib/active_text/base.rb in active_text-0.0.4

- old
+ new

@@ -22,10 +22,10 @@ @variables[k].value = v unless @variables[k].nil? || v.nil? end end # Used to update the text - def render + def apply @variables.each do |key, var| @text.gsub!(/^\$#{key}: .+;/, %Q($#{key}: #{var.value};)) end @text end