Skip to content
Browse files

Fixed Rails deprecation warning.

DEPRECATION WARNING: Calling set_table_name is deprecated. Please use
`self.table_name = 'the_name'` instead.
  • Loading branch information...
1 parent 3626015 commit fba5d26fd8f86b140ac5f7f7214228d32ce9d843 @duff duff committed Mar 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/version_fu/version_fu.rb
View
4 lib/version_fu/version_fu.rb
@@ -55,7 +55,7 @@ def next
# Housekeeping on versioned class
versioned_class.cattr_accessor :original_class
versioned_class.original_class = self
- versioned_class.set_table_name versioned_table_name
+ versioned_class.table_name = versioned_table_name
# Version parent association
versioned_class.belongs_to self.to_s.demodulize.underscore.to_sym,
@@ -106,4 +106,4 @@ def instatiate_revision
self.version = version_number
end
end
-end
+end

0 comments on commit fba5d26

Please sign in to comment.
Something went wrong with that request. Please try again.