1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
draper/lib/draper
Igor Springer 4439ed8e84
fix: Check only object's private method when preventing delegati… (#875)
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`.
2020-02-11 10:47:49 -06:00
..
compatibility Fix some issues (#852) 2019-05-31 09:08:31 -05:00
decoratable Rename source to object 2013-04-30 14:10:52 +01:00
query_methods feat: Include ORM associations in CollectionDecorator (#845) 2019-02-25 10:44:19 -06:00
tasks Replace hash rockets with new syntax (#802) 2017-05-08 09:28:07 -05:00
test Remove previously deprecated functionality. (#785) 2017-03-29 10:26:07 -05:00
view_context Add support for Rails 6.0 to ViewContext::BuildStrategy (#866) 2020-01-07 10:58:00 -06:00
automatic_delegation.rb fix: Check only object's private method when preventing delegati… (#875) 2020-02-11 10:47:49 -06:00
collection_decorator.rb Fix some issues (#852) 2019-05-31 09:08:31 -05:00
configuration.rb feat: Include ORM associations in CollectionDecorator (#845) 2019-02-25 10:44:19 -06:00
decoratable.rb Clean and remove empty lines (#844) 2019-02-25 12:22:28 -06:00
decorated_association.rb Clean and remove empty lines (#844) 2019-02-25 12:22:28 -06:00
decorates_assigned.rb Revert "Merge pull request #480 from urbanautomaton/decorator-namespace-option" 2013-03-10 09:27:12 +01:00
decorator.rb Fix some issues (#852) 2019-05-31 09:08:31 -05:00
delegation.rb Remove ruby 2.7 deprecation (#870) 2020-01-07 11:02:07 -06:00
factory.rb Decorate structs as singular objects (and not as collections) 2014-06-03 16:46:22 -04:00
finders.rb Clean and remove empty lines (#844) 2019-02-25 12:22:28 -06:00
helper_proxy.rb Clean and remove empty lines (#844) 2019-02-25 12:22:28 -06:00
helper_support.rb add new lines 😓 2012-04-25 23:12:30 +03:00
lazy_helpers.rb Clean and remove empty lines (#844) 2019-02-25 12:22:28 -06:00
query_methods.rb Add preservation of decorator options on QueryMethods (#868) 2020-01-03 15:17:34 -06:00
railtie.rb Add support for custom default controller configuration (#788) 2017-03-31 09:05:15 -05:00
test_case.rb Fix some issues (#852) 2019-05-31 09:08:31 -05:00
undecorate.rb Clean and remove empty lines (#844) 2019-02-25 12:22:28 -06:00
version.rb Release v4.0.0 (#872) 2020-02-05 08:55:02 -06:00
view_context.rb Clean view context when controller changes (#799) 2017-05-08 09:23:13 -05:00
view_helpers.rb Fix some issues (#852) 2019-05-31 09:08:31 -05:00