pundit: policy didn't exist

This commit is contained in:
Connor Turland 2016-03-12 11:24:49 +11:00
parent d0aecc0b31
commit 5d179ae5ec

View file

@ -18,7 +18,7 @@ class MappingPolicy < ApplicationPolicy
def create?
map = policy(record.map, user)
map.edit?
map.update?
end
def update?