Merge pull request #1226 from badosu/v2.1-fix-ruby-2.1-reflection

Fix method reflection for ruby 2.1
This commit is contained in:
Carlos Antonio da Silva 2015-03-21 15:10:56 -03:00
parent ab31b60584
commit eaccf516cd
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ module SimpleForm
# reuse the method for nested boolean style, but with no unchecked value,
# which won't generate the hidden checkbox. This is the default functionality
# in Rails > 3.2.1, and is backported in SimpleForm AV helpers.
def build_check_box(unchecked_value = unchecked_value)
def build_check_box(unchecked_value = unchecked_value())
@builder.check_box(attribute_name, input_html_options, checked_value, unchecked_value)
end