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:
parent
1b9cbcdbbb
commit
902e0ca8f2
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue