Skip to content

Commit

Permalink
Lint/SymbolConversion
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jul 13, 2024
1 parent 42fa36d commit 716808c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ Lint/SendWithMixinArgument:
Exclude:
- 'lib/commentable_methods.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, consistent
Lint/SymbolConversion:
Exclude:
- 'lib/commentable_methods.rb'

# Offense count: 5
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Expand Down
4 changes: 2 additions & 2 deletions lib/commentable_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ module HelperMethods
private

def define_role_based_inflection(role)
return if method_defined?("#{role}_comments".to_sym)
return if method_defined?(:"#{role}_comments")

has_many "#{role}_comments".to_sym,
has_many :"#{role}_comments",
-> { where(role: role.to_s) },
**has_many_options(role)
end
Expand Down

0 comments on commit 716808c

Please sign in to comment.