README.md in decanter-1.0.3 vs README.md in decanter-1.1.4
- old
+ new
@@ -38,10 +38,22 @@
input :start_date, :date
input :end_date, :date
end
```
+By default, Decanter will use the [default parser](https://github.com/LaunchPadLab/decanter#default-parsers) that matches your input data type.
+
+```ruby
+ input :name, :string #=> StringParser
+```
+
+To reference a custom or modified parser,
+
+```ruby
+ input :name, :string, :custom_string_parser
+```
+
In your controller:
```ruby
def create
@trip = Trip.decant_new(params[:trip])
@@ -488,6 +500,17 @@
Decanter.configuration.strict = true
```
Likewise, you can put the above code in a specific environment configuration.
+
+Decanter Exceptions
+---
+
+ - MissingRequiredInputValue
+
+ Raised when required inputs have been enabled, but provided arguments to `decant()` do not contain values for those required inputs.
+
+ - UnhandledKeysError
+
+ Raised when there are unhandled keys.