From 69bdb0bf01074a51e76ab845b00b00617043f95b Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 4 Aug 2016 17:04:01 +0800 Subject: [PATCH] hotfix master with mappable_policy.try --- app/policies/mapping_policy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/policies/mapping_policy.rb b/app/policies/mapping_policy.rb index 5826ccd4..ce8522df 100644 --- a/app/policies/mapping_policy.rb +++ b/app/policies/mapping_policy.rb @@ -16,7 +16,7 @@ class MappingPolicy < ApplicationPolicy end def show? - map_policy.show? && mappable_policy.show? + map_policy.show? && mappable_policy.try(:show?) end def create?