Skip to content

Commit fd38348

Browse files
committed
form_buffers is not needed anymore, closes #3
1 parent 0bdb3d2 commit fd38348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/globalize/form_builder_extension.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def translated_inputs(name = "Translations", options = {}, &block)
77
options.symbolize_keys!
88
switch_locale = options.fetch(:switch_locale, false)
99
auto_sort = options.fetch(:auto_sort, true)
10-
form_buffers.last << template.content_tag(:div, class: "activeadmin-translations") do
10+
template.content_tag(:div, class: "activeadmin-translations") do
1111
template.content_tag(:ul, class: "available-locales") do
1212
(auto_sort ? I18n.available_locales.sort : I18n.available_locales).map do |locale|
1313
default = 'default' if locale == I18n.default_locale

0 commit comments

Comments
 (0)