Sha256: 9ee8ab80ff318af282e4745339b65c7cbf4b3b9c440d01744bb947c55f8e7422

Contents?: true

Size: 318 Bytes

Versions: 6

Compression:

Stored size: 318 Bytes

Contents

module Bigamy

  class ARBelongsTo < BelongsTo
  end

  class ARHasOne < HasOne
    def initialize parent, name, options
      super
      target_klass.key foreign_key
    end
  end

  class ARHasMany < HasMany
    def initialize parent, name, options
      super
      target_klass.key foreign_key
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bigamy-0.2.2 lib/bigamy/ar.rb
bigamy-0.2.1 lib/bigamy/ar.rb
bigamy-0.2.0 lib/bigamy/ar.rb
bigamy-0.1.2 lib/bigamy/ar.rb
bigamy-0.1.1 lib/bigamy/ar.rb
bigamy-0.1.0 lib/bigamy/ar.rb