Skip to content

Commit

Permalink
Merge pull request #2 from rylwin/master
Browse files Browse the repository at this point in the history
Avoid ArgumentError when clearing has_many or habtm using Mysql adapter
  • Loading branch information
xxx committed Jan 30, 2012
2 parents 41ce71e + fe842c3 commit 0cf8da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_archive.rb
Expand Up @@ -203,7 +203,7 @@ def self.included(base)
end

module InstanceMethods
def delete_with_archive(arel, name, binds=[])
def delete_with_archive(arel, name=nil, binds=[])
@mutex ||= Mutex.new
@mutex.synchronize do
unless ActsAsArchive.disabled
Expand Down

0 comments on commit 0cf8da4

Please sign in to comment.