Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Jan 7, 2017
1 parent bb0ddca commit b0bf140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model_serializers/model.rb
Expand Up @@ -121,7 +121,7 @@ def initialize(attributes = {})

# Defaults to the downcased model name.
# This probably isn't a good default, since it's not a unique instance identifier,
# but that was the old behavior ¯\_()_/¯
# but that was the old behavior \_('-')_/
def id
@initialized_attributes.fetch(:id) { self.class.model_name.name && self.class.model_name.name.downcase }
end
Expand Down

0 comments on commit b0bf140

Please sign in to comment.