lib/rubocop/cop/discourse/time_eq_matcher.rb in rubocop-discourse-3.0 vs lib/rubocop/cop/discourse/time_eq_matcher.rb in rubocop-discourse-3.0.1
- old
+ new
@@ -35,10 +35,10 @@
end
private
def timestamp_suffix?(property)
- property =~ /_at$/
+ property.is_a?(Symbol) && property =~ /_at$/
end
def not_nil?(expression)
!expression.nil_type?
end