Module: Cell::Twin

Defined in:
lib/cell/twin.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


5
6
7
8
# File 'lib/cell/twin.rb', line 5

def self.included(base)
  base.send :include, Disposable::Twin::Builder
  base.extend ClassMethods
end

Instance Method Details

#initialize(model, options = {}) ⇒ Object


16
17
18
# File 'lib/cell/twin.rb', line 16

def initialize(model, options={})
  super(build_twin(model, options), controller: options.delete(:controller))
end