Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/sir_trevor_rails/blocks/browse_block.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def with_solr_helper(solr_helper)
end

def search_options(id)
(items.detect { |x| x[:id] == id }) || {}
items.detect { |x| x[:id] == id } || {}
end

def searches
Expand Down
2 changes: 1 addition & 1 deletion app/models/sir_trevor_rails/blocks/featured_pages_block.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class FeaturedPagesBlock < SirTrevorRails::Block
include Displayable

def page_options(id)
(items.detect { |x| x[:id] == id }) || {}
items.detect { |x| x[:id] == id } || {}
end

def pages
Expand Down
2 changes: 2 additions & 0 deletions app/models/spotlight/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Spotlight
##
# Exhibit resources
class Resource < ActiveRecord::Base
# rubocop:disable Style/RedundantParentheses
class_attribute :indexing_pipeline, default: (Spotlight::Etl::Pipeline.new do |pipeline|
pipeline.sources = [Spotlight::Etl::Sources::IdentitySource]
pipeline.transforms = [
Expand All @@ -15,6 +16,7 @@ class Resource < ActiveRecord::Base
]
pipeline.loaders = [Spotlight::Etl::SolrLoader]
end)
# rubocop:enable Style/RedundantParentheses

extend ActiveModel::Callbacks
define_model_callbacks :index
Expand Down
Loading