Skip to content

Commit f2e93dd

Browse files
author
YingRui Lu
committed
fix model class constantize
1 parent e5fba11 commit f2e93dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/generators/jsonapi/swagger/swagger_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def ori_sortable_fields_desc
8282
end
8383

8484
def model_klass
85-
model_class_name.safe_constantize
85+
file_name.camelize.safe_constantize
8686
end
8787

8888
def resource_klass

0 commit comments

Comments
 (0)