rename simple adapter to json

This commit is contained in:
Tema Bolshakov
2014-08-29 11:01:39 +04:00
parent 3dd4928279
commit 6496b08464
7 changed files with 7 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
module ActiveModel
class Serializer
class Adapter
class SimpleAdapter < Adapter
class JsonAdapter < Adapter
def serializable_hash(options = {})
serializer.attributes.each_with_object({}) do |(attr, value), h|
h[attr] = value