Skip to content

Commit cb5fd23

Browse files
committed
Fix serializable type for namespaced models
1 parent 4c2ad48 commit cb5fd23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/jsonapi/resource_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def model_klass
200200
end
201201

202202
def type
203-
model_klass.name.underscore.pluralize
203+
model_klass.model_name.plural
204204
end
205205
end
206206
end

0 commit comments

Comments
 (0)