fastruby / fastruby/rails_upgrader

Migrate before_filter to before_action

Open
#22 0 comments 0 reactions 2 assignees Claimed by @kindoflew View on GitHub
feature request
Dominant language
Ruby
Stars
41
Forks
21
PR merge metrics
No merged PRs in 30d

Description

After `Rails 5.1`

All *_filter methods are now called *_action:
These methods were actually already deprecated in Rails 5.0, and Rails 5.1 removes support for *_filter usage, so you should be using *_action.

Before:

```ruby
skip_before_filter :authenticate_user!
before_filter :authenticate_user!
after_filter :do_something
```
After:

```ruby
skip_before_action :authenticate_user!
before_action :authenticate_user!
after_action :do_something
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.