Commit eb6670c466b1cbf520e3c21803b7a2168975eca7
1 parent
413d59be
Exists in
master
and in
29 other branches
Fix plugin active record support for Rails 2.3.x
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/noosfero/plugin/active_record.rb
1 | class Noosfero::Plugin::ActiveRecord < ActiveRecord::Base | 1 | class Noosfero::Plugin::ActiveRecord < ActiveRecord::Base |
2 | - def self.inherited(child) | ||
3 | - child.table_name = child.name.gsub('::','_').underscore.pluralize | 2 | + def self.table_name |
3 | + self.name.gsub('::','_').underscore.pluralize | ||
4 | end | 4 | end |
5 | end | 5 | end |