Commit fd9ab99d45482bf9f1ea5d8edda2bea0af793085
1 parent
52d3c365
Exists in
ratings_minor_fixes
and in
3 other branches
metadata: extend activerecord to avoid reload problems
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
plugins/metadata/lib/metadata_plugin/base.rb
| 1 | - | |
| 2 | 1 | class MetadataPlugin::Base < Noosfero::Plugin |
| 3 | 2 | |
| 4 | 3 | def self.plugin_name |
| ... | ... | @@ -71,6 +70,6 @@ end |
| 71 | 70 | |
| 72 | 71 | ActiveSupport.run_load_hooks :metadata_plugin, MetadataPlugin |
| 73 | 72 | ActiveSupport.on_load :active_record do |
| 74 | - ApplicationRecord.extend MetadataPlugin::Specs::ClassMethods | |
| 73 | + ActiveRecord::Base.extend MetadataPlugin::Specs::ClassMethods | |
| 75 | 74 | end |
| 76 | 75 | ... | ... |