16 lines
261 B
Ruby
16 lines
261 B
Ruby
ActiveAdmin.register I18n::Backend::ActiveRecord::Translation do
|
|
permit_params :key, :value
|
|
|
|
form do |f|
|
|
f.inputs do
|
|
f.input :key
|
|
f.input :value, as: :pagedown_text
|
|
f.actions
|
|
end
|
|
end
|
|
|
|
after_update do
|
|
I18n.reload!
|
|
end
|
|
end
|