README.md in metaractor-1.2.0 vs README.md in metaractor-1.2.1
- old
+ new
@@ -72,9 +72,17 @@
As optional parameters have no enforcement, they are merely advisory.
```ruby
optional :enable_logging
```
+### Skipping Blank Parameter Removal
+By default Metaractor removes blank values that are passed in. You may skip this behavior on a per-parameter basis:
+```ruby
+allow_blank :name
+```
+
+You may check to see if a parameter exists via `context.has_key?`.
+
### Custom Validation
Metaractor supports doing custom validation before any user supplied before_hooks run.
```ruby
validate_parameters do
if context.foo == :bar