Skip to content

Commit

Permalink
Add comments about where these types came from
Browse files Browse the repository at this point in the history
  • Loading branch information
r7kamura committed Nov 16, 2022
1 parent eee1971 commit cb730d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/rubocop/cop/rails/to_s_with_argument.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ class ToSWithArgument < Base
extend AutoCorrector
extend TargetRailsVersion

# These types are defined by the following files in ActiveSupport:
# lib/active_support/core_ext/array/conversions.rb
# lib/active_support/core_ext/date/conversions.rb
# lib/active_support/core_ext/date_time/conversions.rb
# lib/active_support/core_ext/numeric/conversions.rb
# lib/active_support/core_ext/range/conversions.rb
# lib/active_support/core_ext/time/conversions.rb
# lib/active_support/time_with_zone.rb
EXTENDED_FORMAT_TYPES = Set.new(
%i[
currency
Expand Down

0 comments on commit cb730d2

Please sign in to comment.