Skip to content

Commit

Permalink
Fix decorator for Zeitwerk
Browse files Browse the repository at this point in the history
  • Loading branch information
laurajaime committed Sep 4, 2024
1 parent 6956ee6 commit aadc405
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Following Semantic Versioning 2.

## next version:

## Version 0.7.1 (PATCH)
- Fix Zeitwerk error with decorator in /lib folder

## Version 0.7.0 (MINOR)
- Increase minimum Decidim version to v0.27.6
- Upgrade Ruby to 3.0.7
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ GIT
PATH
remote: .
specs:
decidim-department_admin (0.7.0)
decidim-department_admin (0.7.1)
decidim-admin (~> 0.27.0)
decidim-core (~> 0.27.0)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Decidim::ParticipatorySpaceResourceableDecorator
module Lib::Decidim::ParticipatorySpaceResourceableDecorator
#
# This decorator overrided method to avoid .to_sym error when logged in user is Department Admin
# Override affects only line `case role_name&.to_sym`
Expand Down Expand Up @@ -30,4 +30,4 @@ def user_role_config_for(user, role_name)
end
end

::Decidim::ParticipatorySpaceResourceableDecorator.decorate
::Lib::Decidim::ParticipatorySpaceResourceableDecorator.decorate
2 changes: 1 addition & 1 deletion lib/decidim/department_admin/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Decidim
module DepartmentAdmin
# see CHANGELOG.md
def self.version
"0.7.0"
"0.7.1"
end
end
end

0 comments on commit aadc405

Please sign in to comment.