Skip to content

Commit

Permalink
Fix collections in controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
laurajaime committed Dec 5, 2023
1 parent 4500aac commit 32675e7
Show file tree
Hide file tree
Showing 5 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.4.0 (MINOR)
- Fix search collection by current component in public controllers.

## Version 0.3.0 (MINOR)
- Increase minimum Decidim version to 0.27.4
- Refactor scope, category and SDG filters with Ransack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def challenges
end

def search_collection
::Decidim::Challenges::Challenge.published
::Decidim::Challenges::Challenge.where(component: current_component).published
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/decidim/problems/problems_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def problems
end

def search_collection
::Decidim::Problems::Problem.published
::Decidim::Problems::Problem.where(component: current_component).published
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/decidim/solutions/solutions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def technological_scope
end

def search_collection
::Decidim::Solutions::Solution.published
::Decidim::Solutions::Solution.where(component: current_component).published
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/decidim/challenges/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Decidim
# This holds the decidim-meetings version.
module Challenges
def self.version
"0.3.0"
"0.4.0"
end

def self.decidim_version
Expand Down

0 comments on commit 32675e7

Please sign in to comment.