Sha256: 49fccde7cc93f79953cd2a3526ec7ac5d8a0cac3abad2e149b39147dad17b102
Contents?: true
Size: 437 Bytes
Versions: 7
Compression:
Stored size: 437 Bytes
Contents
module Olivander class Datatable < Effective::Datatable def link_col(field, path, path_args) dsl_tool.col(field) do |r| args = [].tap do |arr| if path_args.is_a? Array path_args.each do |arg| arr << r.send(arg) end else arr << r.send(path_args) end end link_to r.send(field), send(path, args) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems