pundit: policy didn't exist

This commit is contained in:
Connor Turland 2016-03-12 11:24:49 +11:00
parent cb79f2deae
commit fdd9351378

View file

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