diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-09 01:26:27 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-09 01:26:27 -0500 |
commit | 473fbe23f29278ac2384b2d3b3fc814dbb5ab9fc (patch) | |
tree | 874c17d86f3dd42439ac1e6c658813766d80b026 /app/controllers/calls_controller.rb | |
parent | 4d7d5ad238990582d6c90a25272f2141ea9a3b28 (diff) |
sip_account.calls has become an array
Diffstat (limited to 'app/controllers/calls_controller.rb')
-rw-r--r-- | app/controllers/calls_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/calls_controller.rb b/app/controllers/calls_controller.rb index 9d85a10..6182ad8 100644 --- a/app/controllers/calls_controller.rb +++ b/app/controllers/calls_controller.rb @@ -31,7 +31,7 @@ class CallsController < ApplicationController end def create - @call = @sip_account.calls.create(params[:call]) + @call = @sip_account.call_legs.build(params[:call]) if @call && @call.call m = method( :"#{@parent.class.name.underscore}_calls_url" ) |