mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
4439ed8e84
https://github.com/drapergem/draper/pull/849 introduced a valid fix to prevent calling object's public method when a decorator overwrites it through a private one. There is one caveat, though. `private_methods` methods has `all` parameter set to `true` by default (https://ruby-doc.org/core-2.7.0/Object.html#method-i-private_methods)`. As a result all private methods are returned, instead of only the ones defined on the object. This commit fixes the above issue by setting the `all` parameter to `false`. |
||
---|---|---|
.. | ||
compatibility | ||
decoratable | ||
query_methods | ||
tasks | ||
test | ||
view_context | ||
automatic_delegation.rb | ||
collection_decorator.rb | ||
configuration.rb | ||
decoratable.rb | ||
decorated_association.rb | ||
decorates_assigned.rb | ||
decorator.rb | ||
delegation.rb | ||
factory.rb | ||
finders.rb | ||
helper_proxy.rb | ||
helper_support.rb | ||
lazy_helpers.rb | ||
query_methods.rb | ||
railtie.rb | ||
test_case.rb | ||
undecorate.rb | ||
version.rb | ||
view_context.rb | ||
view_helpers.rb |