Skip to content

Commit

Permalink
224: fix bad class reference
Browse files Browse the repository at this point in the history
  • Loading branch information
LyricL-Gitster committed May 22, 2024
1 parent 27b680d commit a38e437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/model_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def self.model_name ; ActiveModel::Name.new(self, nil, "NestedClass2") ; end
include AttrJson::Model
def self.model_name ; ActiveModel::Name.new(self, nil, "Klass") ; end

attr_json :nested, AttrJson::Type::PolymorphicModel.new(NestedClass1, NestedClass2), array: true
attr_json :nested, AttrJson::Type::PolymorphicModel.new(nested_class1, nested_class2), array: true
end
end

Expand Down

0 comments on commit a38e437

Please sign in to comment.