Sha256: 7ab968e3afb80b5f52f41870be7f26ee4a68f1d45c8acabe53f901d31742c2ec

Contents?: true

Size: 631 Bytes

Versions: 2

Compression:

Stored size: 631 Bytes

Contents

# do\_nothing

This method is available for overriding the default behavior of Stealth which fires a [CatchAll](../catch-alls.md) in cases where a controller action fails to the update a session or send replies. See the documentation on [failing to progress a user](../controller-overview.md#failing-to-progress-a-user) for more information.

It's primarily used in states that "trap" the user (like your bot's last state or the last level of your `catch_all` flow).

It's usage is straightforward:

```ruby
def  
  do_nothing
end
```

{% hint style="info" %}
You might also use `do_nothing` within an if/else block.
{% endhint %}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stealth-2.0.0.beta7 docs/controllers/sessions/do_nothing.md
stealth-2.0.0.beta6 docs/controllers/sessions/do_nothing.md