diff --git a/app/models/mixins/custom_attribute_mixin.rb b/app/models/mixins/custom_attribute_mixin.rb index 243ede40b29..f57a2b3decd 100644 --- a/app/models/mixins/custom_attribute_mixin.rb +++ b/app/models/mixins/custom_attribute_mixin.rb @@ -27,7 +27,7 @@ module CustomAttributeMixin end def self.custom_keys - custom_attr_scope = CustomAttribute.where(:resource_type => base_class).where.not(:name => nil).distinct.pluck(:name, :section) + custom_attr_scope = CustomAttribute.where(:resource_type => base_class.name).where.not(:name => nil).distinct.pluck(:name, :section) custom_attr_scope.map do |x| "#{x[0]}#{x[1] ? SECTION_SEPARATOR + x[1] : ''}" end