aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/referentials_controller.rb
diff options
context:
space:
mode:
authorZog2018-04-27 10:35:19 +0200
committerJohan Van Ryseghem2018-04-27 11:17:19 +0200
commite9f087ca379dd5b8f26dc96bcfb5d23cd5951662 (patch)
treef9e7d3fbcd1bd25fb636ed36699136818313e34c /app/controllers/referentials_controller.rb
parent5efc3e3b6ffb0625c05d8b692740a715e2f00925 (diff)
downloadchouette-core-e9f087ca379dd5b8f26dc96bcfb5d23cd5951662.tar.bz2
Refs #6572; Fix referentials policies
Diffstat (limited to 'app/controllers/referentials_controller.rb')
-rw-r--r--app/controllers/referentials_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index fe661651e..8addfbc32 100644
--- a/app/controllers/referentials_controller.rb
+++ b/app/controllers/referentials_controller.rb
@@ -31,7 +31,7 @@ class ReferentialsController < ChouetteController
end
def show
- resource.switch
+ resource.switch if resource.ready?
show! do |format|
@referential = @referential.decorate()
@reflines = lines_collection.paginate(page: params[:page], per_page: 10)