lib/mobility/plugins/dirty.rb in mobility-0.8.8 vs lib/mobility/plugins/dirty.rb in mobility-0.8.9
- old
+ new
@@ -48,10 +48,10 @@
require "mobility/plugins/sequel/dirty"
Plugins::Sequel::Dirty
else
raise ArgumentError, "#{model_class} does not support Dirty module."
end
- backend_class.include dirty_module
+ backend_class.include dirty_module.const_get(:BackendMethods)
model_class.include dirty_module.const_get(:MethodsBuilder).new(*attribute_names)
end
end
end
end