class ActiveModelSerializers::Model
def id
-
(String, Numeric, Symbol)
-
Other tags:
- Note: - Though +id+ is defined, it will only show up
def id attributes.fetch(:id) do defined?(@id) ? @id : self.class.model_name.name && self.class.model_name.name.downcase end end