Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,12 @@ Usage:
visit root_path(as: user)
```

You can even use the backdoor outside of Rails route helpers:

```ruby
visit "/dashboard?as=#{user.id}"
```

Additionally, if `User#to_param` is overridden, you can pass a block in
order to override the default behavior:

Expand Down