Sha256: 243a7c687b63e7028ba16a369074cca9acf2d8f1d5cdf8878efdcdade1129dad

Contents?: true

Size: 765 Bytes

Versions: 14

Compression:

Stored size: 765 Bytes

Contents

# encoding: UTF-8

require 'active_record'

begin
  ar_version = if ActiveRecord::VERSION.const_defined?(:STRING)
    ActiveRecord::VERSION::STRING
  else
    ActiveRecord.version.version
  end

  if ar_version >= '4.0.0'
    require 'arel-helpers/ext/collection_proxy'
  end
rescue
  puts 'ArelHelpers was unable to determine the version of ActiveRecord. You may encounter unexpected behavior.'
end

module ArelHelpers
  autoload :Aliases,         "arel-helpers/aliases"
  autoload :ArelTable,       "arel-helpers/arel_table"
  autoload :JoinAssociation, "arel-helpers/join_association"
  autoload :QueryBuilder,    "arel-helpers/query_builder"

  def self.join_association(*args, &block)
    ArelHelpers::JoinAssociation.join_association(*args, &block)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
arel-helpers-2.16.0 lib/arel-helpers.rb
arel-helpers-2.15.0 lib/arel-helpers.rb
arel-helpers-2.14.0 lib/arel-helpers.rb
arel-helpers-2.13.0 lib/arel-helpers.rb
arel-helpers-2.12.1 lib/arel-helpers.rb
arel-helpers-2.12.0 lib/arel-helpers.rb
arel-helpers-2.11.0 lib/arel-helpers.rb
arel-helpers-2.10.0 lib/arel-helpers.rb
arel-helpers-2.9.1 lib/arel-helpers.rb
arel-helpers-2.9.0 lib/arel-helpers.rb
arel-helpers-2.8.0 lib/arel-helpers.rb
arel-helpers-2.7.0 lib/arel-helpers.rb
arel-helpers-2.6.1 lib/arel-helpers.rb
arel-helpers-2.6.0 lib/arel-helpers.rb