diff options
author | Jose and Yehuda <wycats@gmail.com> | 2011-09-27 17:34:47 -0400 |
---|---|---|
committer | Jose and Yehuda <wycats@gmail.com> | 2011-10-15 18:40:37 +0200 |
commit | e407dfb9bf6ee3b12d699511ef05e6f260c5edf1 (patch) | |
tree | 121bb7d7b9bf6515b40ee2059e2dc53bf80edaef /activemodel/test | |
parent | f5836543c3cd16f7789c936a4181f4a7204141dc (diff) | |
download | rails-e407dfb9bf6ee3b12d699511ef05e6f260c5edf1.tar.gz rails-e407dfb9bf6ee3b12d699511ef05e6f260c5edf1.tar.bz2 rails-e407dfb9bf6ee3b12d699511ef05e6f260c5edf1.zip |
Don't require serializable_hash to take options.
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/serializer_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/test/cases/serializer_test.rb b/activemodel/test/cases/serializer_test.rb index 91ed6987a1..1c1da588f7 100644 --- a/activemodel/test/cases/serializer_test.rb +++ b/activemodel/test/cases/serializer_test.rb @@ -21,7 +21,7 @@ class SerializerTest < ActiveModel::TestCase class User2Serializer < ActiveModel::Serializer attributes :first_name, :last_name - def serializable_hash(*) + def serializable_hash attributes.merge(:ok => true).merge(scope) end end @@ -29,7 +29,7 @@ class SerializerTest < ActiveModel::TestCase class MyUserSerializer < ActiveModel::Serializer attributes :first_name, :last_name - def serializable_hash(*) + def serializable_hash hash = attributes hash = hash.merge(:super_user => true) if my_user.super_user? hash |