lib/atp/flow.rb in atp-0.5.4 vs lib/atp/flow.rb in atp-0.6.0
- old
+ new
@@ -154,10 +154,13 @@
end
# Insert explicitly rendered content in to the flow
def render(str, options = {})
extract_meta!(options)
- append builder.render(str)
+ t = apply_open_conditions(options) do |options|
+ builder.render(str, options)
+ end
+ append(t)
end
def with_condition(options)
extract_meta!(options)
open_conditions.push(options)