More refactoring:

* Changed associations to be classes
* remove @hash and always use @options[:hash]
* pass serializer options down to child serializers
This commit is contained in:
Yehuda Katz
2012-01-11 15:28:49 -07:00
parent 89103f1e74
commit b22eebf569
2 changed files with 80 additions and 39 deletions

View File

@@ -737,7 +737,7 @@ class SerializerTest < ActiveModel::TestCase
attributes :id, :name
define_method :serializable_hash do
hash_object = @hash
hash_object = @options[:hash]
super()
end
end