Module: Replication::Modules::Polymorphic

Defined in:
lib/replication/modules/polymorphic.rb

Class Method Summary collapse

Class Method Details

.included(model_class) ⇒ Object



4
5
6
7
8
9
# File 'lib/replication/modules/polymorphic.rb', line 4

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