Revert "Merge branch 'context'"

This reverts commit 1bd8180a94, reversing
changes made to 9bb32331f4.
This commit is contained in:
Santiago Pastorino
2014-01-07 15:02:09 -02:00
parent 1bd8180a94
commit ed9a5288f9
8 changed files with 51 additions and 72 deletions

View File

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