Sha256: a48fcc9a4c7bbaf1f804d81fd469a3633f1df855879fdbdb6208cee9a63824e5
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
module Replication class Config attr_accessor :model_class, :pairs_method, :strand_class, :except, :only def initialize(model_class) @model_class = model_class end def with(modules) modules.each do |m| model_class.send :include, Replication::Modules.const_get(m.to_s.classify) end end def set(options) options and options.each {|name, value| self.send "#{name}=", value} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
replication-0.2.0 | lib/replication/config.rb |