We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2ded59 + f3acf4e commit 2159e81Copy full SHA for 2159e81
README.md
@@ -137,7 +137,7 @@ The model can be serialized as:
137
138
```ruby
139
options = {}
140
-serialization = SerializableResource.new(resource, options)
+serialization = ActiveModelSerializers::SerializableResource.new(resource, options)
141
serialization.to_json
142
serialization.as_json
143
```
@@ -146,7 +146,7 @@ SerializableResource delegates to the adapter, which it builds as:
146
147
148
adapter_options = {}
149
-adapter = Adapter.create(serializer, adapter_options)
+adapter = ActiveModelSerializers::Adapter.create(serializer, adapter_options)
150
adapter.to_json
151
adapter.as_json
152
adapter.serializable_hash
0 commit comments