diff options
author | spag <spag@golwen.net> | 2013-01-16 16:11:21 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-16 16:11:21 +0100 |
commit | 1940b08d47350f8cbf84ad1c13170c7c7505b5aa (patch) | |
tree | 18850d2a588cca1cc76e385122c65c24630169c0 /app/models | |
parent | dc68dbecc380e94322aa2777fcbb5be1f4b0af99 (diff) | |
parent | 225a812d5f2da7dc205c021a571ff3c6d5307f20 (diff) |
Merge branch 'develop' of github.com:amooma/GS5 into develop
Conflicts:
misc/freeswitch/scripts/dialplan/router.lua
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/call_route.rb | 5 | ||||
-rw-r--r-- | app/models/route_element.rb | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/models/call_route.rb b/app/models/call_route.rb new file mode 100644 index 0000000..eba247c --- /dev/null +++ b/app/models/call_route.rb @@ -0,0 +1,5 @@ +class CallRoute < ActiveRecord::Base + attr_accessible :table, :name, :endpoint_type, :endpoint_id, :position + + has_many :route_elements, :dependent => :destroy +end diff --git a/app/models/route_element.rb b/app/models/route_element.rb new file mode 100644 index 0000000..e845f24 --- /dev/null +++ b/app/models/route_element.rb @@ -0,0 +1,5 @@ +class RouteElement < ActiveRecord::Base + attr_accessible :call_route_id, :var_in, :var_out, :pattern, :replacement, :action, :mandatory, :position + + belongs_to :call_route +end |