dewski / json_builder

Rails provides an excellent XML Builder by default to build RSS and ATOM feeds, but nothing to help you build complex and custom JSON data structures. JSON Builder is here to help.
http://garrettbjerkhoel.com/json_builder/
MIT License
243 stars 52 forks source link

Fixed issue where it was impossible to turn off JSON callback wrapping #28

Closed tanelj closed 12 years ago

tanelj commented 12 years ago

Hi!

It was impossible to turn off json_callback via configuration files because it always fall backs to default "true" value.. Eg it results a double wrapping when using json_builder with rack_contrib (old one).

dewski commented 12 years ago

Looks good! Just take a look at the PR comment I made then I'll merge it.

tanelj commented 12 years ago

Hi! Right idea! Now it fixed.

dewski commented 12 years ago

Pushed 3.1.4 to RubyGems. Thanks again for the patch!