aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referentials_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/referentials_controller.rb')
-rw-r--r--app/controllers/referentials_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index c65e6552c..50b2e47c6 100644
--- a/app/controllers/referentials_controller.rb
+++ b/app/controllers/referentials_controller.rb
@@ -26,6 +26,8 @@ class ReferentialsController < BreadcrumbController
def show
resource.switch
show! do |format|
+ @referential = ReferentialDecorator.new(@referential)
+
format.json {
render :json => { :lines_count => resource.lines.count,
:networks_count => resource.networks.count,