summaryrefslogtreecommitdiff
path: root/app/models/call_route.rb
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-30 15:59:52 +0100
committerspag <spag@golwen.net>2013-01-30 15:59:52 +0100
commitd4a664a0495bd183b16a239aeb4c342e1ca739fa (patch)
treea6ef715208cbfdcbe8567388d27311daac3fef58 /app/models/call_route.rb
parent44337fb9a2bcbb8766e7c2b508cf2206afa09c05 (diff)
select route endpoint
Diffstat (limited to 'app/models/call_route.rb')
-rw-r--r--app/models/call_route.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/call_route.rb b/app/models/call_route.rb
index b4496ab..1c3f70a 100644
--- a/app/models/call_route.rb
+++ b/app/models/call_route.rb
@@ -239,6 +239,10 @@ class CallRoute < ActiveRecord::Base
end
end
+ def endpoint_str
+ "#{endpoint_type}=#{endpoint_id}"
+ end
+
def endpoint
if self.endpoint_id.to_i > 0
begin