Skip to content

Commit e4fc50c

Browse files
committed
fix brakeman alert without interpolating
1 parent 7132bf0 commit e4fc50c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/active_scaffold/bridges/logical_query_parser/keyword_query_parser.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ class KeywordQueryParser
1010
end
1111

1212
# Copy search method from LogicalQueryParser
13-
# rubocop:disable Style/DocumentDynamicEvalDefinition
14-
class_eval <<-RUBY, __FILE__, __LINE__ + 1
15-
#{LogicalQueryParser.method(:search).source}
16-
RUBY
17-
# rubocop:enable Style/DocumentDynamicEvalDefinition
13+
class_eval(LogicalQueryParser.method(:search).source, __FILE__, __LINE__)
1814

1915
def initialize(operator)
2016
@operator = operator

0 commit comments

Comments
 (0)