hotfix master with mappable_policy.try
This commit is contained in:
parent
194a4dc975
commit
69bdb0bf01
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class MappingPolicy < ApplicationPolicy
|
||||||
end
|
end
|
||||||
|
|
||||||
def show?
|
def show?
|
||||||
map_policy.show? && mappable_policy.show?
|
map_policy.show? && mappable_policy.try(:show?)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create?
|
def create?
|
||||||
|
|
Loading…
Reference in a new issue