Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Feb 14, 2023
1 parent 1e5757c commit 907e910
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions decidim-core/app/helpers/decidim/participatory_space_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ def participatory_space_wrapper(&block)
end

def participatory_space_manifest
@participatory_space_manifest ||= begin
if current_participatory_space_manifest.is_a? Decidim::ResourceManifest
Decidim.participatory_space_manifests.find { |manifest| manifest.model_class_name == current_participatory_space.class.name }
else
current_participatory_space_manifest
end
end
@participatory_space_manifest ||= if current_participatory_space_manifest.is_a? Decidim::ResourceManifest
Decidim.participatory_space_manifests.find { |manifest| manifest.model_class_name == current_participatory_space.class.name }
else
current_participatory_space_manifest
end
end
end
end

0 comments on commit 907e910

Please sign in to comment.