README.md in decanter-0.8.0 vs README.md in decanter-0.8.1
- old
+ new
@@ -182,10 +182,10 @@
You'll notice that the above ```parser do``` block takes a ```:parse_format``` option. This allows you to specify the format your date string will come in. For example, if you expect "2016-01-15" instead of "01/15/2016", you can adjust the TripDecanter like so:
```ruby
# app/decanters/trip_decanter.rb
-class TripDecanter < Decanter::ValueParser
+class TripDecanter < Decanter::Base
input :name, :string
input :start_date, :date, parse_format: '%Y-%m-%d'
input :end_date, :date, parse_format: '%Y-%m-%d'
end
```