Sha256: 007ecd96bbbc055e7dc70b93fe685f527d057f6860b62fb91502dec9966679f5

Contents?: true

Size: 285 Bytes

Versions: 2

Compression:

Stored size: 285 Bytes

Contents

module Replication
  module Modules
    module Polymorphic
      def self.included(model_class)
        model_class.class_eval do
          has_many :strands, class_name: replication_config.strand_class,
                             as: :origin
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
replication-0.4.1 lib/replication/modules/polymorphic.rb
replication-0.4.0 lib/replication/modules/polymorphic.rb