app/helpers/decidim/admin/scopes_helper.rb in decidim-admin-0.20.1 vs app/helpers/decidim/admin/scopes_helper.rb in decidim-admin-0.21.0
- old
+ new
@@ -30,8 +30,14 @@
[Option.new("", "-")] +
organization.scope_types.map do |scope_type|
Option.new(scope_type.id, translated_attribute(scope_type.name))
end
end
+
+ def organization_scope_depths(organization = current_organization)
+ organization.scope_types.map do |scope_type|
+ Option.new(scope_type.id, translated_attribute(scope_type.name))
+ end.reverse
+ end
end
end
end