Skip to content

Commit

Permalink
Merge pull request #3443 from projectblacklight/rubocop-on-a-friday
Browse files Browse the repository at this point in the history
Run Rubocop autocorrect
  • Loading branch information
jcoyne authored Feb 14, 2025
2 parents 4e5bb16 + 05f803c commit 065ff7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/spotlight/exhibit_import_export_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,15 +365,15 @@ def add_page_content(json)
(json[:feature_pages] || []).each do |page|
p = exhibit.feature_pages.find_by(slug: page[:slug])
page[:content] = p.read_attribute(:content)
(page[:translated_pages]).each do |translated_page|
page[:translated_pages].each do |translated_page|
translated_page[:content] = p.translated_page_for(translated_page[:locale]).read_attribute(:content)
end
end

(json[:about_pages] || []).each do |page|
p = exhibit.about_pages.find_by(slug: page[:slug])
page[:content] = p.read_attribute(:content)
(page[:translated_pages]).each do |translated_page|
page[:translated_pages].each do |translated_page|
translated_page[:content] = p.translated_page_for(translated_page[:locale]).read_attribute(:content)
end
end
Expand Down

0 comments on commit 065ff7c

Please sign in to comment.