D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
draper-1.4.0
/
lib
/
draper
/
Filename :
delegation.rb
back
Copy
module Draper module Delegation # @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] def delegate(*methods) options = methods.extract_options! super *methods, options.reverse_merge(to: :object) end end end