lib/avo/base_resource.rb in avo-2.34.7.pre.1 vs lib/avo/base_resource.rb in avo-2.35.0

- old
+ new

@@ -216,10 +216,10 @@ def model_class # get the model class off of the static property return self.class.model_class if self.class.model_class.present? - # get the model class off of the model + # get the model class off of the model for STI models return @model.base_class if @model.present? # generate a model class class_name_without_resource.safe_constantize end