Do not propagate hint_class wrapper option to the input

This commit is contained in:
Carlos Antonio da Silva 2012-01-11 00:39:20 -02:00
parent 2d44322f59
commit 9373dfb63b
2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,7 @@ module SimpleForm
def initialize(*args)
super(:wrapper, *args)
@options = @defaults.except(:tag, :class, :error_class)
@options = @defaults.except(:tag, :class, :error_class, :hint_class)
end
def render(input)

View File

@ -287,7 +287,6 @@ class FormBuilderTest < ActionView::TestCase
assert_select 'input.default_class#specific_id'
end
# WITHOUT OBJECT
test 'builder should generate properly when object is not present' do
with_form_for :project, :name