spec/examples.rb in cinnamon_serial-2.0.0 vs spec/examples.rb in cinnamon_serial-2.1.0
- old
+ new
@@ -165,5 +165,9 @@
hydrate do
set_owner(obj.id == 1)
end
end
+
+class SimpleEmployeeSerializer < CinnamonSerial::Base
+ serialize :id, :name
+end