forked from projectblacklight/spotlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use sir-trevor fork that supports Rails 6
- Loading branch information
Showing
8 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
lib/generators/spotlight/templates/config/initializers/sir_trevor_rails.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# frozen_string_literal: true | ||
|
||
# Required for 0.6 and up: | ||
# https://github.com/madebymany/sir-trevor-rails#upgrade-guide-to-v060 | ||
class SirTrevorRails::Block | ||
def self.custom_block_types | ||
%w[ | ||
Browse | ||
FeaturedPages | ||
Heading | ||
Iframe | ||
LinkToSearch | ||
List | ||
Oembed | ||
Quote | ||
Rule | ||
SearchResults | ||
SolrDocuments | ||
SolrDocumentsCarousel | ||
SolrDocumentsEmbed | ||
SolrDocumentsFeatures | ||
SolrDocumentsGrid | ||
Text | ||
UploadedItems | ||
Video | ||
] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
gem 'acts-as-taggable-on', github: 'mbleigh/acts-as-taggable-on' | ||
gem 'blacklight-oembed', '>= 0.1', github: 'sul-dlss/blacklight-oembed' | ||
gem 'bootstrap_form', github: 'dunn/bootstrap_form' | ||
gem 'sir_trevor_rails', github: 'cbeer/sir-trevor-rails', branch: 'rails6' | ||
gem 'thor' |