README.md in jbuilder-2.2.8 vs README.md in jbuilder-2.2.9

- old
+ new

@@ -179,9 +179,20 @@ # or json.comments @post.comments, partial: 'comment/comment', as: :comment ``` +You can pass any objects into partial templates with or without `:locals` option. + +```ruby +json.partial! 'sub_template', locals: { user: user } + +# or + +json.partial! 'sub_template', user: user +``` + + You can explicitly make Jbuilder object return null if you want: ``` ruby json.extract! @post, :id, :title, :content, :published_at json.author do