Remove 'Adapter' suffix from adapters since they are in Adapter:: namespace

This commit is contained in:
Tema Bolshakov
2014-08-29 11:40:56 +04:00
parent 6bb4501f67
commit e45e5a82b7
10 changed files with 17 additions and 17 deletions

View File

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