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