Commit ed350e4a authored by Peter Leitzen's avatar Peter Leitzen

Speed up method lookup for Performance/ActiveRecordSubtransactionMethods

parent 2b1809df
......@@ -16,7 +16,7 @@ module RuboCop
with_fast_read_statement_timeout
create_or_find_by
create_or_find_by!
].freeze
].to_set.freeze
def on_send(node)
return unless DISALLOWED_METHODS.include?(node.method_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment