From eb6670c466b1cbf520e3c21803b7a2168975eca7 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Sun, 18 Dec 2011 12:22:42 -0200 Subject: [PATCH] Fix plugin active record support for Rails 2.3.x --- lib/noosfero/plugin/active_record.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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