test/fixtures/poro.rb in active_model_serializers-0.9.0.alpha1 vs test/fixtures/poro.rb in active_model_serializers-0.9.0
- old
+ new
@@ -33,10 +33,13 @@
end
class Comment < Model
end
+class WebLog < Model
+end
+
###
## Serializers
###
class UserSerializer < ActiveModel::Serializer
attributes :name, :email
@@ -59,6 +62,14 @@
has_many :comments
end
class CommentSerializer < ActiveModel::Serializer
attributes :content
+end
+
+class WebLogSerializer < ActiveModel::Serializer
+ attributes :name, :display_name
+end
+
+class WebLogLowerCamelSerializer < WebLogSerializer
+ format_keys :lower_camel
end