Fixes broken monkey patch of #form_with

This commit is contained in:
alpaca-tc 2018-05-30 17:07:42 +09:00
parent 1b9cbcdbbb
commit 902e0ca8f2
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,11 @@ module ActionView::Helpers::Tags
end
else # rails/rails#29791
def value
@object.send @method_name if @object
if @allow_method_names_outside_object
object.send @method_name if object && object.respond_to?(@method_name, true)
else
object.send @method_name if object
end
end
end
end