Permalink
Browse files

remove rails 3.2 deprecations

  • Loading branch information...
1 parent 7f60f90 commit 0db2cd0a5b667785e0a6f1baefbb18ac60c43258 @francesc committed Feb 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails-translate-models.rb
@@ -10,7 +10,7 @@ def has_translations(*args)
translations_table_name = translations_klass_name.pluralize.tableize.to_sym
translations_klass = Class.new(ActiveRecord::Base) do
- set_table_name translations_table_name
+ self.table_name = translations_table_name
belongs_to type.to_sym
validates_presence_of type.to_sym, :language_code
validates_uniqueness_of :language_code, :scope => "#{type}_id"

0 comments on commit 0db2cd0

Please sign in to comment.