Skip to content

Commit

Permalink
remove rails 3.2 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
francesc committed Feb 2, 2012
1 parent 7f60f90 commit 0db2cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails-translate-models.rb
Expand Up @@ -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"
Expand Down

0 comments on commit 0db2cd0

Please sign in to comment.