lib/draper/automatic_delegation.rb in draper-3.1.0 vs lib/draper/automatic_delegation.rb in draper-4.0.0

- old
+ new

@@ -18,9 +18,11 @@ super || delegatable?(method) end # @private def delegatable?(method) + return if private_methods.include?(method) + object.respond_to?(method) end module ClassMethods # Proxies missing class methods to the source class.