1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00

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

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