aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert2017-07-07 18:29:32 +0200
committerRobert2017-07-09 22:43:16 +0200
commit39fe3258b19ee9c7cd01a7cd5b2344b39cb6ae3d (patch)
tree9b9c115653ffbf4d56812d03c53e8bd2885ff316
parent09396d0502c71b0632616c18a0148dbabdba1b95 (diff)
downloadchouette-core-39fe3258b19ee9c7cd01a7cd5b2344b39cb6ae3d.tar.bz2
debugging referential decorator
-rw-r--r--app/decorators/referential_decorator.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/decorators/referential_decorator.rb b/app/decorators/referential_decorator.rb
index b95b04f9f..a230b3d7f 100644
--- a/app/decorators/referential_decorator.rb
+++ b/app/decorators/referential_decorator.rb
@@ -16,6 +16,8 @@ class ReferentialDecorator < Draper::Decorator
)
end
+ require 'pry'
+ binding.pry
if h.policy(object).edit?
if object.archived?