From f37689c68de69eb65edde75370c0c30e7fbf4437 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 24 Mar 2017 11:16:18 -0700 Subject: [PATCH] Add file to view partial keys --- lib/rubocop/cop/github/rails_view_render_literal.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rubocop/cop/github/rails_view_render_literal.rb b/lib/rubocop/cop/github/rails_view_render_literal.rb index 4155c6d..fc2eae7 100644 --- a/lib/rubocop/cop/github/rails_view_render_literal.rb +++ b/lib/rubocop/cop/github/rails_view_render_literal.rb @@ -26,6 +26,7 @@ module RuboCop def_node_matcher :partial_key?, <<-PATTERN (pair (sym { + :file :layout :partial }) $_)