Commit 57df841bff4f14c5165607135eb215a286bb65d5
Committed by
Macartur Sousa
1 parent
2434eb22
Exists in
elasticsearch_api
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 | ... | ... |