diff options
| author | Robert | 2017-07-07 18:29:32 +0200 |
|---|---|---|
| committer | Robert | 2017-07-09 22:43:16 +0200 |
| commit | 39fe3258b19ee9c7cd01a7cd5b2344b39cb6ae3d (patch) | |
| tree | 9b9c115653ffbf4d56812d03c53e8bd2885ff316 | |
| parent | 09396d0502c71b0632616c18a0148dbabdba1b95 (diff) | |
| download | chouette-core-39fe3258b19ee9c7cd01a7cd5b2344b39cb6ae3d.tar.bz2 | |
debugging referential decorator
| -rw-r--r-- | app/decorators/referential_decorator.rb | 2 |
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? |
