diff --git a/lib/simple_form/inputs/base.rb b/lib/simple_form/inputs/base.rb index 414d40ec..524c9273 100644 --- a/lib/simple_form/inputs/base.rb +++ b/lib/simple_form/inputs/base.rb @@ -178,14 +178,10 @@ module SimpleForm model_names.shift lookups << :"#{joined_model_names}.#{lookup_action}.#{reflection_or_attribute_name}" - lookups << :"#{joined_model_names}.#{lookup_action}.#{reflection_or_attribute_name}_html" lookups << :"#{joined_model_names}.#{reflection_or_attribute_name}" - lookups << :"#{joined_model_names}.#{reflection_or_attribute_name}_html" end lookups << :"defaults.#{lookup_action}.#{reflection_or_attribute_name}" - lookups << :"defaults.#{lookup_action}.#{reflection_or_attribute_name}_html" lookups << :"defaults.#{reflection_or_attribute_name}" - lookups << :"defaults.#{reflection_or_attribute_name}_html" lookups << default t(lookups.shift, scope: :"#{i18n_scope}.#{namespace}", default: lookups).presence diff --git a/test/inputs/string_input_test.rb b/test/inputs/string_input_test.rb index 14ac4703..d5db2483 100644 --- a/test/inputs/string_input_test.rb +++ b/test/inputs/string_input_test.rb @@ -115,15 +115,6 @@ class StringInputTest < ActionView::TestCase end end - test 'input translates a key prefixed with _html and return the html markup' do - store_translations(:en, simple_form: { labels: { user: { - name_html: 'Name' - } } }) do - with_input_for @user, :name, :string - assert_select 'label b', 'Name' - end - end - [:email, :url, :search, :tel].each do |type| test "input allows type #{type}" do with_input_for @user, :name, type