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

Fix gettext:store_action_names #761

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

adamruzicka
Copy link
Contributor

The Object.const_source_location stopped being reliable since the zeitwerk changes landed. Each action is expected to define at least one of the three methods, so a source location of a method should be a reliable indicator of where the action comes from.

An alternative to #759

The Object.const_source_location stopped being reliable since the
zeitwerk changes landed. Each action is expected to define at least one
of the three methods, so a source location of a method should be a
reliable indicator of where the action comes from.
Copy link
Contributor

@ianballou ianballou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixed the following:

RAILS_ENV=production bundle exec rake plugin:gettext[katello]

Copy link
Member

@ofedoren ofedoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @adamruzicka, @ianballou and @ekohl, let's get this in then :)

@ofedoren ofedoren merged commit 522f4da into theforeman:master Oct 24, 2024
20 of 23 checks passed
@adamruzicka adamruzicka deleted the action-gettext branch October 25, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants