I'm trying to use the Mobility gem with Rails Admin. I am able to edit fields through the Rails Admin interface (like the impact_description of a Ngo model) and it correctly changes the translation tables:
But the problem is, the Rails Admin interface does not show the correct translation (it is showing in pt-BR, even when the app is in english):
Has anyone sucessfully integrated Rails Admin with the Mobility gem? Thanks for the attention
EDIT:
In my rails_admin.rb
(initializer) I have the regular configurations for all actions (only changing new):
config.actions do
dashboard # mandatory
index # mandatory
new do
except [RewardRule, SuggestedFeed]
end
export
import
bulk_delete
show
edit
# delete
clone
show_in_app
## With an audit adapter, you can add:
# history_index
# history_show
end
And for the Ngo model I don't have any custom configuration, only that it is included on the Rails Admin models:
# rails_admin.rb
config.included_models = [..., Ngo, ...]