We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb0ddca commit b0bf140Copy full SHA for b0bf140
lib/active_model_serializers/model.rb
@@ -121,7 +121,7 @@ def initialize(attributes = {})
121
122
# Defaults to the downcased model name.
123
# This probably isn't a good default, since it's not a unique instance identifier,
124
- # but that was the old behavior ¯\_(ツ)_/¯
+ # but that was the old behavior \_('-')_/
125
def id
126
@initialized_attributes.fetch(:id) { self.class.model_name.name && self.class.model_name.name.downcase }
127
end
0 commit comments