lib/clowne/adapters/sequel.rb in clowne-0.2.0 vs lib/clowne/adapters/sequel.rb in clowne-1.0.0
- old
+ new
@@ -4,22 +4,26 @@
module Clowne
module Adapters
# Cloning adapter for Sequel
class Sequel < Base
- def init_record(source)
- RecordWrapper.new(source)
- end
+ class << self
+ def dup_record(record)
+ Clowne::Adapters::Sequel::Copier.call(record)
+ end
- def dup_source(source)
- Clowne::Adapters::Sequel::Copier.call(source)
+ def operation_class
+ Clowne::Adapters::Sequel::Operation
+ end
end
end
end
end
::Sequel::Model.extend Clowne::Ext::ORMExt
+require 'clowne/adapters/sequel/operation'
require 'clowne/adapters/sequel/associations'
-require 'clowne/adapters/sequel/association'
require 'clowne/adapters/sequel/copier'
require 'clowne/adapters/sequel/record_wrapper'
+require 'clowne/adapters/sequel/resolvers/association'
+require 'clowne/adapters/sequel/resolvers/after_persist'