lib/lhs/concerns/record/includes.rb in lhs-6.0.0 vs lib/lhs/concerns/record/includes.rb in lhs-6.1.0
- old
+ new
@@ -20,9 +20,15 @@
class_clone_factory(args).tap do |class_clone|
class_clone.referencing = unfold_args(args)
end
end
+ def without_including
+ class_clone_factory(rand.to_s.gsub(/\D/, '')).tap do |class_clone|
+ class_clone.including = nil
+ end
+ end
+
private
def unfold_args(args)
args.size == 1 ? args[0] : args
end