Skip to content

Commit

Permalink
Merge branch 'fix_scope_find_errors' into preprod
Browse files Browse the repository at this point in the history
* fix_scope_find_errors:
  Avoid errors trying to find scope in census authorization handler
  Add webp to content types in Active Storage (#135)
  DOC: bump tag version in README
  Add initializer with webpacker require (#133)
  • Loading branch information
entantoencuanto committed Jun 4, 2024
2 parents 2c5cd7f + aa8e98b commit ce1ec99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ When signing in, the following fields from the `default.ldif` should ve used:
To publish to docker hub:

```
DIBA_TAG=v13.1.5-decidim_0.26.8
DIBA_TAG=v13.1.7-decidim_0.26.8
DIBA_DOCKER_TAG=diputaciobcn/decidim-diba:$DIBA_TAG
docker build --network=host -f Dockerfile.production -t $DIBA_DOCKER_TAG .
docker tag $DIBA_DOCKER_TAG diputaciobcn/decidim-diba:latest
Expand Down
3 changes: 3 additions & 0 deletions config/initializers/active_storage.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# frozen_string_literal: true

Rails.application.config.active_storage[:variable_content_types] << "image/webp"
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def unique_id
end

def scope
Decidim::Scope.find(scope_id)
Decidim::Scope.find_by_id(scope_id)
end

def census_for_user
Expand Down

0 comments on commit ce1ec99

Please sign in to comment.