From 7cdb32f642d5cb6b1aca059b78dec375b4da6885 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Tue, 3 Apr 2018 15:32:19 -0700 Subject: [PATCH] Use inclunde? instead of any? for ruby 2.3 --- lib/vagrant/plugin/v2/trigger.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/plugin/v2/trigger.rb b/lib/vagrant/plugin/v2/trigger.rb index 5f9d8aeed..9b1ba5a38 100644 --- a/lib/vagrant/plugin/v2/trigger.rb +++ b/lib/vagrant/plugin/v2/trigger.rb @@ -36,11 +36,11 @@ module Vagrant triggers = [] if stage == :before triggers = config.before_triggers.select do |t| - t.command == action || (t.command == :all && !t.ignore.any?(action)) + t.command == action || (t.command == :all && !t.ignore.include?(action)) end elsif stage == :after triggers = config.after_triggers.select do |t| - t.command == action || (t.command == :all && !t.ignore.any?(action)) + t.command == action || (t.command == :all && !t.ignore.include?(action)) end else raise Errors::TriggersNoStageGiven,