Skip to content

Commit

Permalink
Add very brief TLDR explanation at the top of the README
Browse files Browse the repository at this point in the history
  • Loading branch information
latortuga committed Aug 17, 2023
1 parent 453938a commit 5cd4a08
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ Rails 4.0 introduced Rails developers to the world of Strong Parameters. This ge
- :trophy: Graceful upgrade and fallback to standard Strong Parameters
- :bow: No more busy work enumerating permitted parameters twice

## How it works (TL;DR)

```ruby
# Replace this...
user_params = params.require(:user).permit(:first_name, :email)

# ...with this
user_params = params.auto_permit!(:user)
```

## How it works

Before:
Expand Down

0 comments on commit 5cd4a08

Please sign in to comment.