Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove rails 3.2 deprecations

  • Loading branch information...
commit 0db2cd0a5b667785e0a6f1baefbb18ac60c43258 1 parent 7f60f90
@francesc authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rails-translate-models.rb
View
2  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"
Please sign in to comment.
Something went wrong with that request. Please try again.