Sha256: 8f855b5cbe6d990639285a30b6386cc307e15175e92c41d5101ba2bf43e54cb0

Contents?: true

Size: 336 Bytes

Versions: 29

Compression:

Stored size: 336 Bytes

Contents

# adds arel_table support for belongs_to relationships in ActiveRecord models
module CassandraObject
  module Arel
    extend ActiveSupport::Concern

    class_methods do
      def arel_table
        @arel_table ||= ::Arel::Table.new(column_family, arel_engine)
      end

      def arel_engine
        self
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
sessionm-cassandra_object-4.0.32 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.31 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.30 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.29 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.28 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.27 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.26 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.25 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.24 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.23 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.22 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.21 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.20 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.18 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.17 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.16 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.15 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.14 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.13 lib/cassandra_object/arel.rb
sessionm-cassandra_object-4.0.12 lib/cassandra_object/arel.rb