class DeleteItemsConstraint def self.matches?(request) request.params[:commit] == 'Delete Items' end end