Open ash-r1 opened 2 years ago
I'm using this gem with a non-English product. I realized this gem crashes without :en on I18n.available_locales like that:
:en
I18n.available_locales
I18n.available_locales = [:ja] # or something excepts :en
It crashes here:
https://github.com/jemcode/rails_admin_history_rollback/blob/c39e336e0aba75a4059dbf695b9d3d89628b7144/app/views/rails_admin/main/history.html.haml#L41
error message is:
Showing /home/ash/.anyenv/envs/rbenv/versions/3.0.3/lib/ruby/gems/3.0.0/gems/rails_admin_history_rollback-1.0.3/app/views/rails_admin/main/history.html.haml where line #41 raised: :en is not a valid locale
`` not working with rails_admin 3.0 ,can not see rollback button
I'm using this gem with a non-English product. I realized this gem crashes without
:en
onI18n.available_locales
like that:It crashes here:
https://github.com/jemcode/rails_admin_history_rollback/blob/c39e336e0aba75a4059dbf695b9d3d89628b7144/app/views/rails_admin/main/history.html.haml#L41
error message is: