summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/calls_controller.rb4
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