Skip to content

Commit

Permalink
fix for rename_table with symbols as arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius Markunas committed Mar 15, 2010
1 parent aa1a399 commit 1db6281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_archive/migration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1db6281

Please sign in to comment.