Sha256: fb005c25be056a7a2ff26ffa38940dc2b9555e50f6b31ed7c0735fb3ea939406

Contents?: true

Size: 429 Bytes

Versions: 7

Compression:

Stored size: 429 Bytes

Contents

module PolyamorousHelper
  def new_join_association(reflection, children, klass)
    Polyamorous::JoinAssociation.new reflection, children, klass
  end

  def new_join_dependency(klass, associations = {})
    Polyamorous::JoinDependency.new klass, klass.arel_table, associations, Polyamorous::InnerJoin
  end

  def new_join(name, type = Polyamorous::InnerJoin, klass = nil)
    Polyamorous::Join.new name, type, klass
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ransack-4.2.1 spec/helpers/polyamorous_helper.rb
ransack-4.2.0 spec/helpers/polyamorous_helper.rb
ransack-4.1.1 spec/helpers/polyamorous_helper.rb
ransack-4.1.0 spec/helpers/polyamorous_helper.rb
ransack-4.0.0 spec/helpers/polyamorous_helper.rb
ransack-3.2.1 spec/helpers/polyamorous_helper.rb
ransack-3.2.0 spec/helpers/polyamorous_helper.rb