Sha256: 5d88bcd3fc7bdfacc41a7a39ea7b8f10e65515be90400135eada1245d2a80737
Contents?: true
Size: 239 Bytes
Versions: 1
Compression:
Stored size: 239 Bytes
Contents
class Joiner::JoinDependency < ActiveRecord::Associations::JoinDependency def join_association_for(path) path.inject(join_root) do |node, piece| node.children.detect { |child| child.reflection.name == piece } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
joiner-0.4.0 | lib/joiner/join_dependency.rb |