diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-24 07:32:26 +0100 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-24 07:32:26 +0100 |
commit | fc406e45e4a5ce26e0117ff94e632522fcfa066b (patch) | |
tree | 928c211084021fe142f9b4b60745ea689c8e9f61 /app/controllers | |
parent | b511c13820fba73db330fc2bc6350ce1a29135c3 (diff) |
use call_legs to initiate call
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/calls_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/calls_controller.rb b/app/controllers/calls_controller.rb index 6182ad8..ae0093c 100644 --- a/app/controllers/calls_controller.rb +++ b/app/controllers/calls_controller.rb @@ -17,11 +17,11 @@ class CallsController < ApplicationController if !params[:url].blank? protocol, separator, phone_number = params[:url].partition(':') if ! phone_number.blank? - @call = @parent.calls.new() + @call = @parent.call_legs.new() @call.destination = phone_number end elsif !params[:number].blank? - @call = @parent.calls.new() + @call = @parent.call_legs.new() @call.destination = params[:number] end end |