Sha256: f1b4affe892fede7372d93b2181919ea0c532c19679c6c4457245505c4497e2d

Contents?: true

Size: 255 Bytes

Versions: 15

Compression:

Stored size: 255 Bytes

Contents

module Octopus
  module SingularAssociation
    def self.included(base)
      base.sharded_methods :reader, :writer, :create, :create!, :build
    end
  end
end

ActiveRecord::Associations::SingularAssociation.send(:include, Octopus::SingularAssociation)

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
ar-octopus-ruby-3-0.11.3 lib/octopus/singular_association.rb
ar-octopus-ruby-3-0.11.2 lib/octopus/singular_association.rb
ar-octopus-0.10.2 lib/octopus/singular_association.rb
ar-octopus-0.10.1 lib/octopus/singular_association.rb
ar-octopus-0.10.0 lib/octopus/singular_association.rb
ar-octopus-master-0.9.2.1 lib/octopus/singular_association.rb
ar-octopus-0.9.2 lib/octopus/singular_association.rb
ar-octopus-0.9.1 lib/octopus/singular_association.rb
ar-octopus-0.9.0 lib/octopus/singular_association.rb
ar-octopus-0.8.6 lib/octopus/singular_association.rb
misha-ar-octopus-0.8.7 lib/octopus/singular_association.rb
misha-ar-octopus-0.8.5 lib/octopus/singular_association.rb
ar-octopus-0.8.5 lib/octopus/singular_association.rb
ar-octopus-0.8.4 lib/octopus/singular_association.rb
ar-octopus-0.8.3 lib/octopus/singular_association.rb