lib/disposable/twin/builder.rb in disposable-0.4.0 vs lib/disposable/twin/builder.rb in disposable-0.4.1
- old
+ new
@@ -1,6 +1,6 @@
-require "uber/builder"
+require "declarative/builder"
module Disposable
class Twin
# Allows building different twin classes.
#
@@ -14,15 +14,15 @@
#
# SongTwin.build(Model::Hit.new) #=> <Hit>
module Builder
def self.included(base)
base.class_eval do
- include Uber::Builder
+ include Declarative::Builder
def self.build(model, options={}) # semi-public.
- class_builder.call(model, options).new(model, options) # Uber::Builder::class_builder.
+ build!(self, model, options).new(model, options) # Declarative::Builder::build!.
end
end
end
end
end
-end
\ No newline at end of file
+end