lib/draper/automatic_delegation.rb in draper-4.0.0 vs lib/draper/automatic_delegation.rb in draper-4.0.1
- old
+ new
@@ -18,10 +18,10 @@
super || delegatable?(method)
end
# @private
def delegatable?(method)
- return if private_methods.include?(method)
+ return if private_methods(false).include?(method)
object.respond_to?(method)
end
module ClassMethods