Skip to content

Commit 06085a0

Browse files
committed
Remove the use of predicates from the docs
1 parent 1871430 commit 06085a0

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

doc/smart-answer-flows.md

-13
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,6 @@ next_node(permitted: permitted_next_nodes) do |response|
107107
end
108108
```
109109

110-
#### DEPRECATED: Using predicates
111-
112-
This is the same example from above expressed using predicates:
113-
114-
```ruby
115-
next_node_if(:green, responded_with('green')) )
116-
next_node(:red)
117-
```
118-
119-
The `responded_with` function actually returns a [predicate](http://en.wikipedia.org/wiki/Predicate_%28mathematical_logic%29) which will be invoked during processing. If the predicate returns `true` then the `:green` node will be next, otherwise the next rule will be evaluated. In this case the next rule says `:red` is the next node with no condition.
120-
121-
See [Smart Answer predicates](smart-answers-predicates.md) for more detailed information about this style.
122-
123110
### Storing data for later use
124111

125112
You can use the `precalculate`, `next_node_calculation`, `save_input_as` and `calculate` methods to store data for later use.

0 commit comments

Comments
 (0)