Permalink
Browse files

fix for rename_table with symbols as arguments

  • Loading branch information...
1 parent aa1a399 commit 1db62811244106a6e642b66ee6171a10de8cc8a7 @dziulius dziulius committed Mar 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/acts_as_archive/migration.rb
@@ -32,7 +32,7 @@ def method_missing_with_archive(method, *arguments, &block)
connection = ActiveRecord::Base.connection
args[0] = "archived_" + ActiveRecord::Migrator.proper_table_name(args[0])
if method == :rename_table
- args[1] = "archived_" + args[1]
+ args[1] = "archived_" + args[1].to_s
end
if connection.table_exists?(args[0])
connection.send(method, *args, &block)

0 comments on commit 1db6281

Please sign in to comment.