Sha256: 03188c6935ef8600c75513a6027b4eb1da35fb0c052e7a632651c62e4156dd6b

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

class FlexibleFilter::Reflection::BelongsTo
  attr_reader :reflection

  def initialize(reflection)
    @reflection = reflection
  end

  delegate :join_primary_key, :join_foreign_key, to: :reflection

  def primary_table
    reflection.klass.arel_table
  end

  def foreign_table
    reflection.active_record.arel_table
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flexible_filter-0.0.1 lib/flexible_filter/reflection/belongs_to.rb