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

Translation keys from active record validation errors don't appear in web UI #73

Open
Bonias opened this issue May 11, 2016 · 1 comment

Comments

@Bonias
Copy link

Bonias commented May 11, 2016

Here is simple example:

# a simple active record model
class MyModel < ActiveRecord::Base
  validate do
    errors.add(:base, :just_testing)
  end
end

Lets try to save a record:

> MyModel.new.tap(&:save).errors.full_messages
D, [2016-05-11T11:08:59.348885 #11830] DEBUG -- :    (0.3ms)  BEGIN
# here are many log lines where lit translations are saved
D, [2016-05-11T11:08:59.548904 #11830] DEBUG -- :    (0.2ms)  ROLLBACK
=> ["translation missing: da.activerecord.errors.models.my_model.attributes.base.just_testing"]

Because active record transaction is rollbacked, also all LIT transactions added to database in this transaction are lost.

@Bonias Bonias changed the title Translation keys from active record validation errors does not appear in web UI Translation keys from active record validation errors don't appear in web UI May 11, 2016
@pnikrat
Copy link
Contributor

pnikrat commented Dec 24, 2021

@Bonias I think it was already fixed by this PR #116

Let me know if the issue can be closed

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

2 participants