lib/rubocop/cop/rails/freeze_time.rb in rubocop-rails-2.20.2 vs lib/rubocop/cop/rails/freeze_time.rb in rubocop-rails-2.21.0
- old
+ new
@@ -67,10 +67,10 @@
def current_time_with_convert?(node, method_name)
return false unless CONVERT_METHODS.include?(method_name)
child_node, child_method_name, time_argument = *node.children
- return if time_argument
+ return false if time_argument
current_time?(child_node, child_method_name)
end
end
end