Skip to content

Commit 737f0d5

Browse files
authored
Root path reserved for home + image CircleCI (#3930)
* enable validator: root path is reserved for home * replace circleci image
1 parent eaa5362 commit 737f0d5

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.circleci/config.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2.1
44
jobs:
55
build:
66
docker:
7-
- image: cimg/ruby:4.0.2-node
7+
- image: noesya/cimg-ruby-activestorage-preview:4.0.2
88
environment:
99
RAILS_ENV: test
1010
RACK_ENV: test
@@ -26,13 +26,6 @@ jobs:
2626
keys:
2727
- v1-dependencies-{{ checksum "Gemfile.lock" }}
2828

29-
# Install binaries for Active Storage Previews
30-
- run:
31-
name: Install binaries for Active Storage Previews
32-
command: |
33-
sudo apt-get update
34-
sudo apt-get install ffmpeg poppler-utils libvips-dev -y
35-
3629
# Bundler configuration
3730
- run:
3831
name: Configure Bundler

app/models/communication/website/permalink.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Communication::Website::Permalink < ApplicationRecord
3838

3939
validates :path, presence: true
4040
validates :path, uniqueness: { scope: :website_id }, unless: :is_current
41-
# TODO: validate :root_path_is_reserved_for_home
41+
validate :root_path_is_reserved_for_home
4242

4343
before_validation :set_university, on: :create
4444
# We should not sync the about object whenever we do something with the permalink, as they can be changed during a sync.

0 commit comments

Comments
 (0)