lib/source_route/formats/html.rb in source_route-0.0.8 vs lib/source_route/formats/html.rb in source_route-0.0.9

- old
+ new

@@ -9,10 +9,11 @@ result_config = wrapper.condition.result_config template_path = File.expand_path "../html_template.slim", __FILE__ slim_template = Slim::Template.new(template_path) filename = result_config[:filename] || "#{Time.now.strftime('%H%M')}-source-route.html" - if result_config[:import_return_to_call] and wrapper.condition.has_call_and_return_event + + if result_config.import_return_to_call and wrapper.condition.has_call_and_return_event wrapper.import_return_value_to_call_results end html_output_str = slim_template.render(wrapper) File.open(filename, 'w') do |f| f << html_output_str