Revert "Allow to pass options to associations"

This reverts commit c8cfe94f29.
This commit is contained in:
Santiago Pastorino
2014-01-03 19:44:40 -02:00
parent c8cfe94f29
commit 60fc55021c
3 changed files with 2 additions and 16 deletions

View File

@@ -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