Sha256: 44ea6f867653ba45c76c156b4a4ad690e814b3b117fcbf870a20c8ac6ace94e2

Contents?: true

Size: 310 Bytes

Versions: 19

Compression:

Stored size: 310 Bytes

Contents

# encoding: UTF-8

module ArelHelpers
  module ArelTable

    extend ActiveSupport::Concern

    module ClassMethods

      if ActiveRecord.const_defined?(:Delegation)
        ActiveRecord::Delegation.delegate :[], to: :to_a
      end

      def [](name)
        arel_table[name]
      end

    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
arel-helpers-2.16.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.15.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.14.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.13.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.12.1 lib/arel-helpers/arel_table.rb
arel-helpers-2.12.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.11.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.10.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.9.1 lib/arel-helpers/arel_table.rb
arel-helpers-2.9.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.8.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.7.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.6.1 lib/arel-helpers/arel_table.rb
arel-helpers-2.6.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.5.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.4.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.3.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.2.0 lib/arel-helpers/arel_table.rb
arel-helpers-2.1.1 lib/arel-helpers/arel_table.rb