Skip to content

Commit

Permalink
Merge pull request #10663 from isimluk/support-ruby-222
Browse files Browse the repository at this point in the history
Do not use &. notation just yet
  • Loading branch information
chessbyte authored Aug 22, 2016
2 parents f1b93bb + 1a8e36d commit 4e3cb0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper/button/vm_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ class ApplicationHelper::Button::VmPolicy < ApplicationHelper::Button::Basic
needs_record

def skip?
@record.host&.vmm_product.to_s.casecmp("workstation")
@record.host.try(:vmm_product).to_s.casecmp("workstation")
end
end

0 comments on commit 4e3cb0a

Please sign in to comment.