-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a few content blocks in from adventist
- Loading branch information
1 parent
e60efac
commit 0a6a266
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
app/controllers/hyrax/content_blocks_controller_decorator.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,18 @@ | ||
# frozen_string_literal: true | ||
|
||
# OVERRIDE Hyrax v3.4.0 to add home_text to permitted_params - Adding themes | ||
module Hyrax | ||
module ContentBlocksControllerDecorator | ||
# override hyrax v2.9.0 added the home_text content block to permitted_params - Adding Themes | ||
def permitted_params | ||
params.require(:content_block).permit(:marketing, | ||
:announcement, | ||
:home_text, | ||
:homepage_about_section_heading, | ||
:homepage_about_section_content, | ||
:researcher) | ||
end | ||
end | ||
end | ||
|
||
Hyrax::ContentBlocksController.prepend Hyrax::ContentBlocksControllerDecorator |
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