diff --git a/lib/noosfero/plugin/active_record.rb b/lib/noosfero/plugin/active_record.rb index b7aa868..f7769ed 100644 --- a/lib/noosfero/plugin/active_record.rb +++ b/lib/noosfero/plugin/active_record.rb @@ -1,5 +1,5 @@ class Noosfero::Plugin::ActiveRecord < ActiveRecord::Base - def self.inherited(child) - child.table_name = child.name.gsub('::','_').underscore.pluralize + def self.table_name + self.name.gsub('::','_').underscore.pluralize end end -- libgit2 0.21.2