You mean that the administrator should be allowed to edit all fields of the record, but the editor should be allowed to change only the fields x and y?
Yes, this is possible in pundit, as it integrates with strong parameters (which you should use anyway). There is also an example in the pundit readme (see: Strong Options). I simplified the example from readme:
def permitted_attributes
if user.admin?
[:title, :body, :tag_list]
else
[:tag_list]
end
@post.update_attributes(permitted_attributes(@post))
permitted_attributes pundit permitted_attributes , .