summaryrefslogtreecommitdiff
path: root/app/controllers/pager_groups_controller.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-04 15:06:50 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-04 15:06:50 +0200
commit87cf6e55f76901c340ec99cf216637a2b9672cc2 (patch)
tree8f500293a84151d177a64e3ca892eb13cd20b8f4 /app/controllers/pager_groups_controller.rb
parent26456e2298376ceb5bc3d7978d7c0aa146e44039 (diff)
JSON API for PagerGroup (new)
Diffstat (limited to 'app/controllers/pager_groups_controller.rb')
-rw-r--r--app/controllers/pager_groups_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/pager_groups_controller.rb b/app/controllers/pager_groups_controller.rb
index 4fa21c2..3b145b1 100644
--- a/app/controllers/pager_groups_controller.rb
+++ b/app/controllers/pager_groups_controller.rb
@@ -1,6 +1,8 @@
class PagerGroupsController < ApplicationController
+ load_resource :sip_account
+ load_resource :pager_group, :through => :sip_account
+
def index
- @pager_groups = PagerGroup.all
end
def show