diff options
author | spag <spag@golwen.net> | 2013-01-30 15:59:52 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-30 15:59:52 +0100 |
commit | d4a664a0495bd183b16a239aeb4c342e1ca739fa (patch) | |
tree | a6ef715208cbfdcbe8567388d27311daac3fef58 /app/models | |
parent | 44337fb9a2bcbb8766e7c2b508cf2206afa09c05 (diff) |
select route endpoint
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/call_route.rb | 4 |
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 |