Skip to content

Commit

Permalink
form_buffers is not needed anymore, closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
fabn committed Nov 10, 2014
1 parent 0bdb3d2 commit fd38348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_admin/globalize/form_builder_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def translated_inputs(name = "Translations", options = {}, &block)
options.symbolize_keys!
switch_locale = options.fetch(:switch_locale, false)
auto_sort = options.fetch(:auto_sort, true)
form_buffers.last << template.content_tag(:div, class: "activeadmin-translations") do
template.content_tag(:div, class: "activeadmin-translations") do
template.content_tag(:ul, class: "available-locales") do
(auto_sort ? I18n.available_locales.sort : I18n.available_locales).map do |locale|
default = 'default' if locale == I18n.default_locale
Expand Down

0 comments on commit fd38348

Please sign in to comment.