Skip to content

Incompatibilities with the term-customizer module #28

@mrcasals

Description

@mrcasals

Hi!

We're trying to install this module in an installation together with the https://github.com/mainio/decidim-module-term_customizer module and it's giving us errors.

We've tracked the problems to the calendar module, because it's defining a participatory space but the module_class_name is not an ActiveRecord class but a bare module name:

participatory_space.model_class_name = "Decidim::Calendar"

In the specific case of the term customizer, it expects the model_class_name to be an ActiveRecord class defining a participatory space and it calls some ActiveRecord method (.where, .all...). This would be expected by any other developer.

Note that the problem only seems to appear in production, I suppoose due to the preloading of classes Rails does in production (and not in development mode).

Why is the Calendar module being registered as a participatory space when it's clearly not one? Can you change that so that it works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions