You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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.
The text was updated successfully, but these errors were encountered:
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
Here is simple example:
Lets try to save a record:
Because active record transaction is rollbacked, also all LIT transactions added to database in this transaction are lost.
The text was updated successfully, but these errors were encountered: