Skip to content

Commit 8fa5da5

Browse files
committed
Fix serializable type for namespaced models
1 parent 322eba9 commit 8fa5da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/jsonapi/serializable/serializable_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def model_klass
2727
end
2828

2929
def type
30-
model_klass.name.underscore.pluralize
30+
model_klass.model_name.plural
3131
end
3232

3333
def attr_names

0 commit comments

Comments
 (0)