README.md in jpbuilder-0.2.4 vs README.md in jpbuilder-0.2.5
- old
+ new
@@ -29,18 +29,18 @@
You can set a global callback to be used in the absence of a callback listed in
the `params` hash, by setting the `JPbuilderHandler.default_callback` variable
in an initializer:
``` ruby
-# config/initilizers/jpbuilder.rb
+# config/initializers/jpbuilder.rb
JPbuilderHandler.default_callback = "myJsCallback"
```
To disable the auto callback simply set `JPbuilderHandler.default_callback` to
`null` or `""`.
``` ruby
-# config/initilizers/jpbuilder.rb
+# config/initializers/jpbuilder.rb
JPbuilderHandler.default_callback = nil
```
**Note**: `nil` is the default value.