mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Revert "Merge branch 'context'"
This reverts commit1bd8180a94, reversing changes made to9bb32331f4.
This commit is contained in:
2
test/fixtures/poro.rb
vendored
2
test/fixtures/poro.rb
vendored
@@ -47,7 +47,7 @@ end
|
||||
class ProfileSerializer < ActiveModel::Serializer
|
||||
def description
|
||||
description = object.read_attribute_for_serialization(:description)
|
||||
context[:scope] ? "#{description} - #{context[:scope]}" : description
|
||||
scope ? "#{description} - #{scope}" : description
|
||||
end
|
||||
|
||||
attributes :name, :description
|
||||
|
||||
Reference in New Issue
Block a user