Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibilities with the term-customizer module #28

Open
mrcasals opened this issue Nov 12, 2020 · 2 comments
Open

Incompatibilities with the term-customizer module #28

mrcasals opened this issue Nov 12, 2020 · 2 comments

Comments

@mrcasals
Copy link

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?

@BigSnicker
Copy link

We are just looking at adding the calendar module, as we use meetings modules fairly extensively.

But we need the usability provided by the term-customizer module, so we will have to hold off on using the Calendar module until this is resolved. Is there any chance of this being looked at?

@JayeshB92
Copy link

Facing same issue with tokenizer, any workarounds please..!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants