CHANGELOG.md in active_model_serializers-0.8.1 vs CHANGELOG.md in active_model_serializers-0.8.2
- old
+ new
@@ -20,12 +20,14 @@
Adding 'cached true' to your Serializers will turn on this cache.
* URL helpers used inside of Engines now work properly.
* Serializers now can filter attributes with `only` and `except`:
-
+
+ ```
UserSerializer.new(user, only: [:first_name, :last_name])
UserSerializer.new(user, except: :first_name)
+ ```
* Basic Mongoid support. We now include our mixins in the right place.
* On Ruby 1.8, we now generate an `id` method that properly serializes `id`
columns. See issue #127 for more.