module Draper::Delegation
Public Instance Methods
delegate(*methods)
click to toggle source
@overload delegate(*methods, options = {})
Overrides {http://api.rubyonrails.org/classes/Module.html#method-i-delegate Module.delegate} to make `:object` the default delegation target. @return [void]
Calls superclass method
# File lib/draper/delegation.rb, line 8 def delegate(*methods) options = methods.extract_options! super(*methods, **options.reverse_merge(to: :object)) end