lib/active_merge.rb in active_merge-1.0.5 vs lib/active_merge.rb in active_merge-1.1.0

- old
+ new

@@ -18,11 +18,17 @@ # end # # Lord.all.merge_all # => merges all the class instances # Lord.where("id > :id", id: 100) # => merges instances with id > 100 # + # You can use the <tt>validate: false</tt> option. + # + # With this option set any activerecord validation and callback are skipped. + # + # Post.all.merge_all validate: false + # # See details in <tt>ActiveMerge::Service#provide</tt> documentation. # - def merge_all - ActiveMerge::Service.new(all).provide + def merge_all(options = {}) + ActiveMerge::Service.new(all).provide(options) end end