hotfix master with mappable_policy.try

This commit is contained in:
Devin Howard 2016-08-04 17:04:01 +08:00
parent 194a4dc975
commit 69bdb0bf01

View file

@ -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?