Skip to content

Commit 08fef55

Browse files
committed
Address rubocop complaints
1 parent 907297e commit 08fef55

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

app/models/sir_trevor_rails/blocks/browse_block.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def with_solr_helper(solr_helper)
1414
end
1515

1616
def search_options(id)
17-
(items.detect { |x| x[:id] == id }) || {}
17+
items.detect { |x| x[:id] == id } || {}
1818
end
1919

2020
def searches

app/models/sir_trevor_rails/blocks/featured_pages_block.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class FeaturedPagesBlock < SirTrevorRails::Block
88
include Displayable
99

1010
def page_options(id)
11-
(items.detect { |x| x[:id] == id }) || {}
11+
items.detect { |x| x[:id] == id } || {}
1212
end
1313

1414
def pages

app/models/spotlight/resource.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module Spotlight
44
##
55
# Exhibit resources
66
class Resource < ActiveRecord::Base
7+
# rubocop:disable Style/RedundantParentheses
78
class_attribute :indexing_pipeline, default: (Spotlight::Etl::Pipeline.new do |pipeline|
89
pipeline.sources = [Spotlight::Etl::Sources::IdentitySource]
910
pipeline.transforms = [
@@ -15,6 +16,7 @@ class Resource < ActiveRecord::Base
1516
]
1617
pipeline.loaders = [Spotlight::Etl::SolrLoader]
1718
end)
19+
# rubocop:enable Style/RedundantParentheses
1820

1921
extend ActiveModel::Callbacks
2022
define_model_callbacks :index

0 commit comments

Comments
 (0)