pundit: policy didn't exist
This commit is contained in:
parent
d0aecc0b31
commit
5d179ae5ec
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class MappingPolicy < ApplicationPolicy
|
||||||
|
|
||||||
def create?
|
def create?
|
||||||
map = policy(record.map, user)
|
map = policy(record.map, user)
|
||||||
map.edit?
|
map.update?
|
||||||
end
|
end
|
||||||
|
|
||||||
def update?
|
def update?
|
||||||
|
|
Loading…
Reference in a new issue