Sha256: d623b401fdeb47cf85b648c00ae4866acb14ca0fc3681e31a6392eb4fe9626d6
Contents?: true
Size: 413 Bytes
Versions: 4
Compression:
Stored size: 413 Bytes
Contents
module Draper module Delegation # @overload delegate(*methods, options = {}) # Overrides {http://api.rubyonrails.org/classes/Module.html#method-i-delegate Module.delegate} # to make `:source` the default delegation target. # # @return [void] def delegate(*methods) options = methods.extract_options! super *methods, options.reverse_merge(to: :source) end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
draper-1.2.0 | lib/draper/delegation.rb |
jamesgolick-draper-1.1.1a | lib/draper/delegation.rb |
draper-1.1.0 | lib/draper/delegation.rb |
draper-1.0.0 | lib/draper/delegation.rb |