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

Avo team & user view don't work in production environment #1371

Open
tangopium opened this issue Mar 20, 2024 · 0 comments
Open

Avo team & user view don't work in production environment #1371

tangopium opened this issue Mar 20, 2024 · 0 comments

Comments

@tangopium
Copy link

There is currently an issue with the team and user view of the avo dashboard in production:

image

The issue is, that in these views, a select_field (from avo) is used to display a time_zone value. The select_field uses options.invert[value].

In the User and Team model, these options get fed by view_context.time_zone_options_for_select(Avo::Current.user.time_zone, nil, ActiveSupport::TimeZone), which returns a ActiveSupport::SafeBuffer(String). This class doesn't implement an invert method.

In the development environment this works, because the colorize gem gets included, which implements this method for the String class. But in production, this gem/method is missing.

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

1 participant