mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
use model name to determine the type
This commit is contained in:
@@ -188,7 +188,7 @@ module ActiveModel
|
||||
end
|
||||
|
||||
def type
|
||||
object.class.to_s.demodulize.underscore.pluralize
|
||||
object.class.model_name.plural
|
||||
end
|
||||
|
||||
def attributes(options = {})
|
||||
|
||||
Reference in New Issue
Block a user