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.
1 parent 4f26f09 commit 165bac9Copy full SHA for 165bac9
lib/active_model/serializer.rb
@@ -34,7 +34,7 @@ def self.inherited(base)
34
end
35
36
# Primary interface to building a serializer (with adapter)
37
- # If no block is given, returns the adapter, ready for #as_json/#to_json
+ # If no block is given, returns the builder, ready for #as_json/#to_json/#serializable_hash
38
# Otherwise, yields the builder and returns the contents of the block
39
def self.build(resource, options = {})
40
builder = Builder.new(resource, options)
0 commit comments