File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments