Skip to content

Commit

Permalink
Add example of params_for_action
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Apr 11, 2024
1 parent ac48eb2 commit b84520b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ class MyPolicy < ApplicationPolicy
end
end
end

class SomeController < ApplicationController
def update
@some_record.update(params_for_action(@some_record))
end
end
```

## Development
Expand Down

0 comments on commit b84520b

Please sign in to comment.