mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Revert "Allow to pass options to associations"
This reverts commit c8cfe94f29.
This commit is contained in:
5
test/fixtures/poro.rb
vendored
5
test/fixtures/poro.rb
vendored
@@ -50,11 +50,6 @@ class ProfileSerializer < ActiveModel::Serializer
|
||||
scope ? "#{description} - #{scope}" : description
|
||||
end
|
||||
|
||||
def name
|
||||
name = object.read_attribute_for_serialization(:name)
|
||||
options[:custom_name] ? "#{name} - #{options[:custom_name]}" : name
|
||||
end
|
||||
|
||||
attributes :name, :description
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user