Sha256: aeb967e2a9281e687c8b2b7e42177eef47dcc80367ac31dd253cd35bbc8c82a7
Contents?: true
Size: 328 Bytes
Versions: 1
Compression:
Stored size: 328 Bytes
Contents
class Joiner::JoinDependency < ActiveRecord::Associations::JoinDependency def join_association_for(path, alias_tracker = nil) @alias_tracker = alias_tracker construct_tables! join_root 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.5.0 | lib/joiner/join_dependency.rb |