Revert rubocop autocorrections and add it to exclusion list on rubocop_todo file
This commit is contained in:
@@ -550,3 +550,11 @@ Style/VariableNumber:
|
|||||||
Style/WordArray:
|
Style/WordArray:
|
||||||
EnforcedStyle: percent
|
EnforcedStyle: percent
|
||||||
MinSize: 3
|
MinSize: 3
|
||||||
|
|
||||||
|
# Offense count: 1
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||||
|
# SupportedStyles: braces, no_braces, context_dependent
|
||||||
|
Style/BracesAroundHashParameters:
|
||||||
|
Exclude:
|
||||||
|
- 'app/models/concerns/searchable.rb'
|
||||||
|
|||||||
@@ -5,14 +5,15 @@ module Searchable
|
|||||||
include PgSearch
|
include PgSearch
|
||||||
include SearchCache
|
include SearchCache
|
||||||
|
|
||||||
pg_search_scope :pg_search,
|
pg_search_scope :pg_search, {
|
||||||
against: :ignored, # not used since using a tsvector_column
|
against: :ignored, # not used since using a tsvector_column
|
||||||
using: {
|
using: {
|
||||||
tsearch: { tsvector_column: 'tsv', dictionary: "spanish", prefix: true }
|
tsearch: { tsvector_column: 'tsv', dictionary: "spanish", prefix: true }
|
||||||
},
|
},
|
||||||
ignoring: :accents,
|
ignoring: :accents,
|
||||||
ranked_by: '(:tsearch)',
|
ranked_by: '(:tsearch)',
|
||||||
order_within_rank: (self.column_names.include?('cached_votes_up') ? "#{self.table_name}.cached_votes_up DESC" : nil)
|
order_within_rank: (self.column_names.include?('cached_votes_up') ? "#{self.table_name}.cached_votes_up DESC" : nil)
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user