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