Sha256: 547b51cddf9720df55ba84c5f14a88e542609bab76e969178cfcfdbd903e6fa4

Contents?: true

Size: 775 Bytes

Versions: 1

Compression:

Stored size: 775 Bytes

Contents

require "replication/version"

module Replication

  autoload :Process, 'replication/process'
  autoload :Config, 'replication/config'
  autoload :StrandMethods, 'replication/strand_methods'

  module ActiveRecord
    autoload :Strand, 'replication/active_record/strand'
  end

  module Modules
    autoload :SemiConservative, 'replication/modules/semi_conservative'
    autoload :Proofreading, 'replication/modules/proofreading'
  end

  def self.defaults
    defaults = {
      only: [], 
      except: []
    }
    defaults.merge!({
      strand_class: ::Replication::ActiveRecord::Strand,
      except: [:id, :created_at, :updated_at]
    }) if defined?(ActiveRecord)
  end

  class UnwoundError < StandardError; end;
end

require 'replication/engine' if defined?(Rails)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
replication-0.2.0 lib/replication.rb