Skip to content

Commit

Permalink
More single quotes for greater good! [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
rwz committed May 4, 2013
1 parent 085c1a4 commit ffddad9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ To define attribute and structure names dynamically, use the `set!` method:

``` ruby
json.set! :author do
json.set! :name, "David"
json.set! :name, 'David'
end

# => "author": { "name": "David" }
Expand Down Expand Up @@ -109,7 +109,7 @@ class Company
end
end

company = Company.new("Doodle Corp", Person.new("John Stobs", 58))
company = Company.new('Doodle Corp', Person.new('John Stobs', 58))
company.to_builder.target!

# => {"name":"Doodle Corp","president":{"name":"John Stobs","age":58}}
Expand All @@ -136,7 +136,7 @@ end
# RAILS_ROOT/app/views/api/comments/_comments, and set a local variable
# 'comments' with all this message's comments, which you can use inside
# the partial.
json.partial! "api/comments/comments", comments: @message.comments
json.partial! 'api/comments/comments', comments: @message.comments
```

You can explicitly make Jbuilder object return null if you want:
Expand All @@ -157,7 +157,7 @@ Keys can be auto formatted using `key_format!`, this can be used to convert keyn

``` ruby
json.key_format! :camelize => :lower
json.first_name "David"
json.first_name 'David'

# => { "firstName": "David" }
```
Expand Down

0 comments on commit ffddad9

Please sign in to comment.